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
Reply

Join Date: Dec 2007
Posts: 622
Reputation: OmniX is an unknown quantity at this point 
Solved Threads: 9
OmniX's Avatar
OmniX OmniX is offline Offline
Practically a Master Poster

NONE of my javascript works in FF but works in IE

 
0
  #1
May 19th, 2008
I have javascript and ALL of it works in IE but in FF NONE of it works at all.

Anything I should be aware of in general?

Most are based on onClick events.

Thanks, Regards X.
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 319
Reputation: Luckychap is on a distinguished road 
Solved Threads: 42
Luckychap's Avatar
Luckychap Luckychap is offline Offline
Posting Whiz

Re: NONE of my javascript works in FF but works in IE

 
0
  #2
May 19th, 2008
did you close ur <script> tag with </script>
check this out. And post code if still no works.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 622
Reputation: OmniX is an unknown quantity at this point 
Solved Threads: 9
OmniX's Avatar
OmniX OmniX is offline Offline
Practically a Master Poster

Re: NONE of my javascript works in FF but works in IE

 
0
  #3
May 19th, 2008
na there in a .js file and yes there <script></script>
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,252
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 492
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: NONE of my javascript works in FF but works in IE

 
0
  #4
May 19th, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,649
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 474
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: NONE of my javascript works in FF but works in IE

 
1
  #5
May 19th, 2008
> 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.
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
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 622
Reputation: OmniX is an unknown quantity at this point 
Solved Threads: 9
OmniX's Avatar
OmniX OmniX is offline Offline
Practically a Master Poster

Re: NONE of my javascript works in FF but works in IE

 
0
  #6
May 21st, 2008
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
Last edited by OmniX; May 21st, 2008 at 8:52 pm.
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 686
Reputation: sillyboy is on a distinguished road 
Solved Threads: 61
sillyboy's Avatar
sillyboy sillyboy is offline Offline
Practically a Master Poster

Re: NONE of my javascript works in FF but works in IE

 
0
  #7
May 22nd, 2008
Are you checking your code on the same machine all the time? My initial thought is you might have javascript disabled for firefox.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 622
Reputation: OmniX is an unknown quantity at this point 
Solved Threads: 9
OmniX's Avatar
OmniX OmniX is offline Offline
Practically a Master Poster

Re: NONE of my javascript works in FF but works in IE

 
0
  #8
May 22nd, 2008
Can you disable javascript for firefox? lol

Sorry im a noob when it comes to firefox, im trying to join the developer craz side of it

Yes on the same machine, localhost at the moment.

But even when I upload it to the server dosent work.
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 1,181
Reputation: hollystyles will become famous soon enough hollystyles will become famous soon enough 
Solved Threads: 67
hollystyles's Avatar
hollystyles hollystyles is offline Offline
Veteran Poster

Re: NONE of my javascript works in FF but works in IE

 
0
  #9
May 22nd, 2008
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:

JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. 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)
==========================================
Yadda yadda yadda...
Web junky, fevered monkey
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 686
Reputation: sillyboy is on a distinguished road 
Solved Threads: 61
sillyboy's Avatar
sillyboy sillyboy is offline Offline
Practically a Master Poster

Re: NONE of my javascript works in FF but works in IE

 
0
  #10
May 24th, 2008
Originally Posted by OmniX View Post
Can you disable javascript for firefox? lol
Tools -> Options -> Content

There should be a checkbox
Reply With Quote Quick reply to this message  
Reply

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



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



Tag cloud for JavaScript / DHTML / AJAX
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC