I am operating on Windows7 with IE8, Firefox, Google Chrome, Safari and Opera. JavaScript will work on the live site but it won't work on any local site I am testing in any browser. I don't get an error message or any feedback. The PC I am using is new. Any ideas?

link|improve this question
3  
I didn't realise Oprah had her own browser :¬) – pelms Aug 10 '10 at 12:47
Are you browsing the page by opening it in your web browser (address bar starts with "file:///"), or do you have a web server setup locally that you're running the web page from (address bar start with "http://")? – Tim S. Van Haren Nov 19 '10 at 17:48
2  
Questions about (web) programming are off-topic here -- try webmasters.stackexchange.com or stackoverflow.com instead. – Torben Gundtofte-Bruun Dec 15 '10 at 15:02
@Joe Where does your JavaScript reside (inline or external .js file)? If it's external, have you checked the source path (maybe it's a relative path)? – Gary Aug 19 '11 at 13:21
feedback

4 Answers

Have you tried debugging the code using the firebug extension in Firefox. It will help you determine where the problem lies.

link|improve this answer
feedback

Install an extension (such as NoScript) that is meant to block scripts... and tell it NOT to block scripts, and if the extension has an option to allow local content, enable that. This worked for me.

link|improve this answer
feedback

Some firewalls/antivirus also block these kind of stuff (eg Avast).

link|improve this answer
feedback

I guess your site will get the base URL to include the javascript into html from some php or whatever variables. I think there is the problem.

Post your <head> please. Look if its the right path and localhost or 127.0.0.1 is in it.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.