Link to home
Start Free TrialLog in
Avatar of lucavilla
lucavillaFlag for Italy

asked on

Javascript "Error: Object required"

With IE7 if you go here http://alturl.com/287f
then enter for example the values 11, 11 and 11 as "dimensioni"
this Javasscript error appears:
Line: 15
Char: 3
Error: Object required
Code: 0

If I open the source of the page I don't see anything that matters in line 15.

How can I know what file and line it's referring to?  what debugging tool should I use?

Note: in Firefox with Firebug I don't see any Javascript error.   I see it only in IE7
Avatar of Badotz
Badotz
Flag of United States of America image

Chances are the error is on line 14 or sixteen - the notifier is notoriously errant ;-)
Avatar of lucavilla

ASKER

here are the lines from 8 to 17:

<style type="text/css">
<!--
body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
}
-->
</style>

Still convinced that the Javascript error can be from line 14 to line 16?    :)

I suspect that the error is in some third file (...js) called by this page but how can I find what is it?
SOLUTION
Avatar of abel
abel
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Put

debugger;

on its own line in the .JS file and step through your code.
Or look in each external .JS file for lines 14-16 and see if you can figure it out from there, smarty=pants ;-)
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
@bui_trung_hieu, no offense meant, but 4 comments ago, I said exactly that: #24181052  :)
@abel : sorry, I didn't see your answer when posting mine.
np, I see now that the time wasn't that far apart and I have it all the time myself as well ;)
thanks abel
and thanks bui_trung_hieu for the fast "solution", that worked :-D
> thanks abel and thanks bui_trung_hieu for the fast "solution", that worked :-D

glad we could be of some help :)