| | |
Debug WebApp in IE7
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Aug 2007
Posts: 1
Reputation:
Solved Threads: 0
Hi there.
I have been working on a rather big webapp for some company. It is based on RoR and uses lots of AJAX and JS.
My problem is, that the whole app works perfectly on Mozilla/Firefox/Konqueror.
But I have mysterious JS error messages in IE5,6,7 and some (well... rather most) functionality is messed up in IE and even in Safari.
Is there a way to debug the JS code in IE7 somehow? The "error message" I get from IE is some kind of "object expected" thingy without more precise information... Is there something like firebug for firefox for IE? Or some IDE, which simulates the IE way of interpreting the script?
Thanks in advance.
I have been working on a rather big webapp for some company. It is based on RoR and uses lots of AJAX and JS.
My problem is, that the whole app works perfectly on Mozilla/Firefox/Konqueror.
But I have mysterious JS error messages in IE5,6,7 and some (well... rather most) functionality is messed up in IE and even in Safari.
Is there a way to debug the JS code in IE7 somehow? The "error message" I get from IE is some kind of "object expected" thingy without more precise information... Is there something like firebug for firefox for IE? Or some IDE, which simulates the IE way of interpreting the script?
Thanks in advance.
Last edited by rav_n; Aug 6th, 2007 at 4:21 am.
The trouble with commercial debuggers is that they often miss such quirks. They usually use the W3C DOM as the reference, and will miss errors occurring in the IE DOM.
Do you know approximately where your error is occurring?
I can think of some goofy things that cause cryptic errors like this:
- Did you use a variable ot id name which is a reserved word in IE, but not FF or the W3C DOM? It could be the name of one of IE's proprietary extensions (such as "marquee"). This can cause IE to misinterpret a reference to a form object.
- Did you use a variable or function name which duplicates a built-in constant or function in the IE DOM?
- Is a semicolon missing somewhere? IE is much more forgiving of this error than FF is. But occasionally it also misinterprets the code with the semicolon missing.
- Is a quote mismatched somewhere? Like this:
'I went nuts last week hunting an error that turmed out to be a case where you don't notice an apostrophe in a quoted line, just like this one.'
I totally didn't think about the word "don't" having a quote mark in it.
- If you are refering to a mapped portion of an image, is it possible that a rendering difference or a failure to find the image file moved the image or made the mapping impossible?
.
Do you know approximately where your error is occurring?
I can think of some goofy things that cause cryptic errors like this:
- Did you use a variable ot id name which is a reserved word in IE, but not FF or the W3C DOM? It could be the name of one of IE's proprietary extensions (such as "marquee"). This can cause IE to misinterpret a reference to a form object.
- Did you use a variable or function name which duplicates a built-in constant or function in the IE DOM?
- Is a semicolon missing somewhere? IE is much more forgiving of this error than FF is. But occasionally it also misinterprets the code with the semicolon missing.
- Is a quote mismatched somewhere? Like this:
'I went nuts last week hunting an error that turmed out to be a case where you don't notice an apostrophe in a quoted line, just like this one.'
I totally didn't think about the word "don't" having a quote mark in it.
- If you are refering to a mapped portion of an image, is it possible that a rendering difference or a failure to find the image file moved the image or made the mapping impossible?
.
Last edited by MidiMagic; Aug 7th, 2007 at 4:37 am.
Daylight-saving time uses more gasoline
![]() |
Similar Threads
- MORE ie7 hanging/sometimes Firefox too! (Web Browsers)
- Windows XP and IE7 Help needed please (Windows NT / 2000 / XP)
- Minor bug with daniweb and IE7 (DaniWeb Community Feedback)
- "Run time error, do you wish to debug?" (Web Browsers)
- cannot debug ASP (ASP)
- Need to debug (Web Browsers)
- Windows 2000 Debug file (Windows NT / 2000 / XP)
- Debug message (Web Browsers)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: How do I prevent value and attribute delays?
- Next Thread: Problem in Default Value of Check Box
| Thread Tools | Search this Thread |
acid2 ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate automatically beta box browser bug captchaformproblem checkbox close codes createrange() css cursor debugger decimal dependent disablefirebug dom download dropdown editor element engine enter error events explorer ext file firefox form forms frameworks getselection google gwt hiddenvalue hint html htmlform ie7 ie8 iframe index internet java javascript javascripthelp2020 jawascriptruntimeerror jquery jsf jsfile jsp jump listbox maps masterpage math media menu microsoft mp4 object onmouseoutdivproblem onreadystatechange paypal php player position problem programming progressbar prototype redirect regex runtime safari scale scriptlets search security select size software sql text textarea unicode w3c window windowofwords windowsxp wysiwyg \n






