dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: Can't get expandable/collapsible div text to work in Firefox

  1. #1
    Join Date
    Apr 2011
    Posts
    2

    Unhappy Can't get expandable/collapsible div text to work in Firefox

    I am very new to programming and untrained, so I used a sample I found to create expandable/collapsible text. It works in IE, but not Firefox. Here is the link to a simplified version, which expands when you click on it in IE, but does nothing in Firefox.
    http://www.projusticemn.org/library/attachment.193408
    Any help is greatly appreciated!

  2. #2
    Join Date
    Dec 2005
    Posts
    2,984
    In your page, do a search replace and replace "currentStyle" with "style".

    currentStyle is (was?) a MSIE-specific DOM Node property....other browsers used to use getComputedStyle() but I'm pretty sure now, everybody gets along fine with just using "style";

  3. #3
    Join Date
    Apr 2011
    Posts
    2
    Thanks for the reply. I made that change to the four instances of "currentStyle", but it did not fix it in Firefox, and it now won't open in IE either. Here is the new link:
    http://www.projusticemn.org/library/attachment.193522
    If it helps, I can post the source code.
    Thanks again for any help!

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