I don't know why but I get JavaScript error only in Firefox, also I see some unwanted JavaScript file in my page that I never referenced to them before.
What's this? Actually I want to know what's this unwanted JavaScript file in my page?
I found the answer, it's because of one FireFox extension that automatically included some external javaScript files to all of pages and it's prevent Firebug to work well.
Removing extension solved all problems.
Related
I'm having a very weird JS issue here: JS doesn't seem to run at all while the user selects a file for upload. To cause it simply don't close the file selection dialog. After a while the session times out. I've tried all sorts of settings, but I can't get around it.
I'm not sure, but it looks like it's only IE. Chrome and FF seem to run JS in the background.
Is there something I can include into the web page to tell the browser not to halt JS while picking files ?
The solution as proposed by #blex works perfectly.
Currently working on liferay site and stuck with IE8 browser issue. When I loading the page I am getting the Javascript errors.
'undefined' is null or not an object dojo.xd.js line 14 character 31332
When I load the same page in Chrome and Firefox and I didn't see any java script errors.
For IE I could not able to proceed much as it is taking to dojo source file and could not able to figure it. I also tried to remove dojo components one after another to see the whether I can isolate the issue. But it doesn't help and getting the same error. Is there any better way to debug this issue/ any other tools that will help on get more information/ suggestions?
Is there any data transmission between browser and server. If so, paste here or check for correct JSON format. Extra commas, braces are usually the culprit.
Firefox and Chrome are relaxing browser and adjust themselves.
I have an external js file with some simple functions. They work fine when in the aspx page. When they are in the external js file, I get an error on the dev machine that the function is not defined. After playing with this for two days in IE9, I tried it in FF and it worked fine. Then, it worked in IE9 too. I had a second site with the same problem. I checked it again and it didn't work in IE9, then checked it in FF, it worked, and then it continued to work in IE9. What could possible cause this?
Ultimately this depends on whether or not the file is being included in the page correctly via the <script> tag. I'd be surprised if one browser can resolve a bad reference and another one cannot, since it's ultimately the server's job to determine if a file path is correct or not. So check that your include mechanism is always including the file correctly. You can run a trace with Fiddler for example, and watch for any 404 errors when the browser requests scripts.
The other possibility is that the script itself is being included correctly, but it contains syntax or references that Firefox accepts as valid but IE9 doesn't. For example, a reference to console will bomb in some versions of IE but will work fine in Chrome. Check that your script is valid to begin with.
How is it possible to execute JavaScript code on a specific page through a Firefox addon. I know I can use Greasemonkey but since I'm porting one of my Chrome extension, I want it to have the exact same features. So my question is, is it possible to execute JavaScript through a Firefox addon as if that JavaScript was executed in the page itself.
I was able to work it out somehow but every time I open a new tab, it gets executed in that tab again. Someone please help me fix this problem. I also want to use jQuery with this.
I use firebug, and go through the console to manually execute JS functions for testing. Alternatively, if you have to insert a whole JS include file, check out Fiddler.
I'm getting "Object Expected JS error in IE 6 and 7. I'm not able to reproduce this always. The behavior is inconsistent. I'm using Dojo Charts in my JSP page. When this error occurs none of the Charts gets loaded.
I had a similar problem with IE before. That was a JS function was called before the JS file was loaded completely. We can see the JS file in the request, but that file is empty.
I wonder why IE is not taking the JS files from cache. It works perfectly in Mozilla.
Can some one suggest a better way to track such inconsistent JS errors?
thanks
You're dereferencing a variable which is undefined, but without an example, hard to say much beyond that.
(everything is an object in javascript so it's pretty much the only way to generate that error)
In Internet options in Advanced tab you can enable debugging.
IE has a lot of quirks that won't arise in other browsers. The best way to debug IE is to get a copy of Microsoft's Script Debugger, and you can launch it from IE to get a clearer idea of where the actual problem is. Script Debugger will halt execution at the problem line and show it in a separate window (IE locks up until you close Script Debugger, but you get a much better idea of what line is causing the problem).
See here for more: http://www.codestore.net/store.nsf/unid/DOMT-5UBUVW?OpenDocument
There's a link in the middle of that document that goes to MS Script Debugger, but here it is anyway.