| | |
Passing variable Explorer vs Firefox
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Jul 2007
Posts: 30
Reputation:
Solved Threads: 1
Hello,
When I pass variables 'contentA','contentB','contentC', etc... into the tabs() function, it does not work in Internet Explorer.
When I pass variables contentA,contentB,contentC, etc... into the tabs() function, it works perfectly in Internet Explorer but not in firefox!!!!
This is the last bug that I need to fix in my site - and it'll be ready (after having beed doing it for 2 months). I think this is the last web site I'm building manually - too much stress and time consuming. I'll do all my web sites from now on in Dreamweaver, with just minimal coding. I think there are more practical things in daily life and career planning to think about, than getting stuck in some javascript bugs, etc, for days, don't you think so? Although I love creating web pages. And I admire the guys who make their living on programming in php, javascript, etc.
Can anybody help me with this?
Thanks.
When I pass variables 'contentA','contentB','contentC', etc... into the tabs() function, it does not work in Internet Explorer.
When I pass variables contentA,contentB,contentC, etc... into the tabs() function, it works perfectly in Internet Explorer but not in firefox!!!!
This is the last bug that I need to fix in my site - and it'll be ready (after having beed doing it for 2 months). I think this is the last web site I'm building manually - too much stress and time consuming. I'll do all my web sites from now on in Dreamweaver, with just minimal coding. I think there are more practical things in daily life and career planning to think about, than getting stuck in some javascript bugs, etc, for days, don't you think so? Although I love creating web pages. And I admire the guys who make their living on programming in php, javascript, etc.
Can anybody help me with this?
Thanks.
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<script language="JavaScript" type="text/JavaScript"> <!-- function tabs(view,hideA,hideB,hideC,hideD,colourid1, colourid2, colourid3, colourid4, colourid5) { if (view.style.visibility == "hidden") { view.style.visibility = "visible"; view.style.display = "block"; hideA.style.visibility = "hidden"; hideB.style.visibility = "hidden"; hideC.style.visibility = "hidden"; hideD.style.visibility = "hidden"; hideA.style.display = "none"; hideB.style.display = "none"; hideC.style.display = "none"; hideD.style.display = "none"; }else{ view.style.visibility = "hidden"; view.style.display = "none"; } } //--> </script> </head> <body> <ul> <li><a href="javascript:void(0);" onClick="tabs('contentA','contentB','contentC','contentD','contentE','originalcolourA')" id="originalcolourA"><b>Colour</b></a></li> <li><a href="javascript:void(0);" onClick="tabs('contentB','contentA','contentC','contentD','contentE','originalcolourB','originalcolourA','originalcolourC','originalcolourD','originalcolourE')" id="originalcolourB"><b>Feeding</b></a></li> <li><a href="javascript:void(0);" onClick="tabs('contentC','contentA','contentB','contentD','contentE','originalcolourC','originalcolourA','originalcolourB','originalcolourD','originalcolourE')" id="originalcolourC"><b>Breeding</b></a></li> <li><a href="javascript:void(0);" onClick="tabs('contentD','contentA','contentB','contentC','contentE','originalcolourD','originalcolourA','originalcolourB','originalcolourC','originalcolourE')" id="originalcolourD"><b>Voice</b></a></li> <li><a href="javascript:void(0);" onClick="tabs('contentE','contentA','contentB','contentC','contentD','originalcolourE','originalcolourA','originalcolourB','originalcolourC','originalcolourD')" id="originalcolourE"><b>Location</b></a></li> </ul> <div id="contents"> <div id="contentA" style="visibility: hidden;"><p id="contentAA"></p></div> <div id="contentB" style="visibility: hidden;"><p id="contentBB"></p></div> <div id="contentC" style="visibility: hidden;"><p id="contentCC"></p></div> <div id="contentD" style="visibility: hidden;"><p id="contentDD"></p></div> <div id="contentE" style="visibility: hidden;"><p id="contentEE"></p></div> </div> </body>
![]() |
Similar Threads
- Dynamic Div Name getElementById (JavaScript / DHTML / AJAX)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: How to scroll over big image on web
- Next Thread: IE6 fires unexpectedly 'onclick' when pressing ENTER (keyCode 13)
| Thread Tools | Search this Thread |
acid2 ajax ajaxexample ajaxjspservlets array automatically beta box browser captcha captchaformproblem cart close codes column css date debugger decimal dependent design developer disablefirebug dom download element embed engine enter error events ext file firefox focus form frameworks getselection google gwt gxt hiddenvalue highlightedword hint html htmlform ie7 iframe index java javascript javascripthelp2020 jquery jsp libcurl listbox maps marquee masterpage media menu microsoft mimic mp4 onerror onmouseoutdivproblem onmouseover paypal pdf php player position post problem programming prototype rated rating redirect safari scale scriptlets scroll search security select software starrating synchronous toggle tweet twitter unicode validation variables w3c webservice window windowofwords xml





