How do I locate the actual Javascript line number
I'm working with a nice freeware product called Timeline (http://simile.mit.edu/wiki/Timeline) which is a Javascript program that can be used to plot timecharts within a web page. I've been making a few custom modifications to it, currently it runs fine in Firefox but throws an error in IE. The error in IE tells me that it is occuring on line 354. The problem is, the javascript code of Timeline is being included using this line:
<script src="http://Canberra/Energenie/Project_Tracker/Timeline/timeline-api.js" type="text/javascript"></script>
And that file has less than 354 line so it must be occuring in one of the files that it imports. Is there a way of making IE display exactly what the line looks like?
Re: How do I locate the actual Javascript line number
No. IE error messages suck. Fact of life. The only thing you can do is litter your code with alerts until you find the error.
Re: How do I locate the actual Javascript line number
Or get Firefox and the Firebug extension and debug to your heart's content.
Or if you have VS Pro, you can also attach that to IE as a JS debugger, if wind is from the south and Saturn's moons are in alignment.
Re: How do I locate the actual Javascript line number
Well, Firebug won't work if the problem only occurs in IE ...
Re: How do I locate the actual Javascript line number
Hmm, good point.
In that case you are left with the VS debugger. I can only wish you good luck.
Re: How do I locate the actual Javascript line number
Thanks. I've managed to get it to debug in the Microsoft Script Editor.