expanding block script works in safari - not in firefox 3

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Jul 2008
Posts: 1
Reputation: dhutchis is an unknown quantity at this point 
Solved Threads: 0
dhutchis dhutchis is offline Offline
Newbie Poster

expanding block script works in safari - not in firefox 3

 
0
  #1
Jul 26th, 2008
I have a script showing / hiding a form on a page that seems just fine in Safari 3 but not Firefox:

  1. <a href="javascript:if(document.getElementById('tell_form').style.display =='block'){document.getElementById('tell_form').style.display='none';}else{document.getElementById('tell_form').style.display='block';}">

In firefox it sems to reveal the form then quickly jups to a new page with the script in the address bar.

Can anyone help?
Last edited by peter_budo; Jul 28th, 2008 at 6:58 am. Reason: Keep It Organized - please use [code] tags
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 348
Reputation: Troy III will become famous soon enough Troy III will become famous soon enough 
Solved Threads: 42
Troy III's Avatar
Troy III Troy III is offline Offline
Posting Whiz

Re: expanding block script works in safari - not in firefox 3

 
0
  #2
Jul 27th, 2008
you might wana try adding return false .
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC