www.webdeveloper.com
Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21

Thread: [RESOLVED] Accessing Hidden Object Content

  1. #16
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    If it doesn't work in Fx4 beta, send a bug report.

    IE6 in IE8: http://msdn.microsoft.com/en-us/libr...spx#getstarted
    At least 98% of internet users' DNA is identical to that of chimpanzees

  2. #17
    Join Date
    Aug 2010
    Posts
    51

    Post

    Not helping much at the moment but thank you for the reference. As for the problems with firefox grabbing the contentDocument, it's more likely that I made a mistake somewhere in my element grabbing code - been using something like this:
    Code:
    var doc = document;
    var get = null;
    if (typeof doc.getElementById === "function") get = doc.getElementById;
    else if (typeof doc.all === "function") get = doc.all;
    else get = function () { return null; }
    I use the null value to leave things to the server instead.

  3. #18
    Join Date
    Aug 2010
    Posts
    51
    Since this part of the same site I'll post here instead of creating a whole new topic or performing a server draining search. Trying to pass an element into a function but keep getting the location. Here's the HTML I'm using (I've given up on the object element).
    Code:
    <a id="home" class="tabx" href="index.htm" onclick="site.tab(this);return false;">Home</a>
    This is where I let the function decide if the server should handle things instead.

  4. #19
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Depends how you use it; this in anchor refers to the action of the element (if there's an href) and the element itself.
    this is index.htm (action)
    this.id is home (object)
    At least 98% of internet users' DNA is identical to that of chimpanzees

  5. #20
    Join Date
    Aug 2010
    Posts
    51
    I see, thanks. I will adjust my script and see if I can cater for it.

  6. #21
    Join Date
    Aug 2010
    Posts
    51
    Thanks, it helped a great deal even if I did have to manually remove the excess path for local loading. wdaisy.cz.cc is where I've uploaded the most recent changes if your interested.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles