| | |
NONE of my javascript works in FF but works in IE
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Best would be post your code, so people can have look and try to find the error
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
> I have javascript and ALL of it works in IE but in FF NONE of it works at all.
You are in luck; just take a sneak peak at the Error Console of Firefox (Tools -> Error Console) for any Javascript related errors. Also if you are into extensive Javascript programming, grabbing hold of Firebug (a firefox extension specifically tailored for Javascript debugging) would do you a lot of good.
You are in luck; just take a sneak peak at the Error Console of Firefox (Tools -> Error Console) for any Javascript related errors. Also if you are into extensive Javascript programming, grabbing hold of Firebug (a firefox extension specifically tailored for Javascript debugging) would do you a lot of good.
I don't accept change; I don't deserve to live.
Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
Hmm heard of firefox extensions havent been game enough to install them yet 
Thanks SOS, I will try that and see what happens thankyou
PS:
First Error:
In Error Console states that "form_cars is not defined" in my javascript file.
"form_cars" is the name of my form.
I go check the html form it refers to and the 2 names "form_cars" both are correct.
So....?
Any Ideas? Thanks

Thanks SOS, I will try that and see what happens thankyou

PS:
First Error:
In Error Console states that "form_cars is not defined" in my javascript file.
"form_cars" is the name of my form.
I go check the html form it refers to and the 2 names "form_cars" both are correct.
So....?
Any Ideas? Thanks
Last edited by OmniX; May 21st, 2008 at 8:52 pm.
Welcome to the crazeee world of browser incompatability 
There is an ECMAScript standard (Ha ha ha ha laughs uncontrollably) which has been interpreted by browser creaters in a lot of different ways all who claim compliance (Bunches up in another fit of giggles)
javascript running in a browser is not java, its just called that because.... well I have no idea, beacause it's actually ECMAScript. (Notice a pattern as to how f***** up something is and how ubiquitous it is? PHP anyone?)
Anyhoo s-o-s has given the best advise as usual. In addition I recommend the w3schools.com as they give tutorials that work in most browsers. sitepoint are another good javascript resource and I can recommend their javascript anthology book.
For your immediate problem try:
Instead of using the form name, generally there is only one form in a web-page so you can be sure it will be at index 0 in the DOM (Document Object Model)

There is an ECMAScript standard (Ha ha ha ha laughs uncontrollably) which has been interpreted by browser creaters in a lot of different ways all who claim compliance (Bunches up in another fit of giggles)
javascript running in a browser is not java, its just called that because.... well I have no idea, beacause it's actually ECMAScript. (Notice a pattern as to how f***** up something is and how ubiquitous it is? PHP anyone?)
Anyhoo s-o-s has given the best advise as usual. In addition I recommend the w3schools.com as they give tutorials that work in most browsers. sitepoint are another good javascript resource and I can recommend their javascript anthology book.
For your immediate problem try:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
document.forms[0];
Instead of using the form name, generally there is only one form in a web-page so you can be sure it will be at index 0 in the DOM (Document Object Model)
![]() |
Similar Threads
- Opera Javascript bug? (works in Firefox) (JavaScript / DHTML / AJAX)
- IE7 New Window Javascript (JavaScript / DHTML / AJAX)
- Javascript and Firefox ISSUES (JavaScript / DHTML / AJAX)
- ASP Code Works on Local 127.0.0.1 but Not on ISP's Server (ASP)
- Making T.Greer's JavaScript-synthesised combobox dynamic (JavaScript / DHTML / AJAX)
- JavaScript's window.opener (JavaScript / DHTML / AJAX)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: problem
- Next Thread: Using JS To Do A "Vote Only Once" Option
| Thread Tools | Search this Thread |
Tag cloud for JavaScript / DHTML / AJAX
ajax ajaxexample ajaxjspservlets array autoplay blackjack browser captchaformproblem checkbox child class close codes date debugger dependent developer disablefirebug dom editor element embed engine events explorer ext file firefox flash form forms game gears getselection google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe internet java javascript javascripthelp2020 jquery jsf jsfile jsp jump libcurl maps marquee masterpage math matrixcaptcha media mysql object onerror onmouseoutdivproblem onreadystatechange parent passing paypal pdf php player position post programming rated redirect runtime safari scriptlets scroll search security session shopping size software solutions star stars stretch synchronous toggle tweet unicode variables web webkit webservice window wysiwyg \n






