We help IT Professionals succeed at work.

Need help figuring out javascript error

ltrain2015
ltrain2015 asked
on
I have a website project that was recently converted from Visual Studio 2003 to VS2005.  The site starts ok, but when the user navigates to a certain page, they get a javascript error stating the following:

##############################################
Line:  38
Char:1
Error: Object expected
Code: 0
URL:  http://localhost:3882/DataAnalysis/whatif3.aspx
##############################################
-AND-
##############################################
Line:  73
Char:  55
Error:  Syntax Error
Code: 0
URL:  http://localhost:3882/DataAnalysis/Whatif3.aspx
##############################################

I have attached the source files.  I had to change the extensions to txt in order to get them to upload.
WhatIf3-aspx.txt
WhatIf3-aspx-resx.txt
WhatIf3-aspx-vb.txt
lstMods-js.txt
Comment
Watch Question

Commented:
<body class="transformGradient"
            onload="initpage();">

but you don't seem to have a function called initpage() in your page.
It's at the top of the lstMods.js file.

Commented:
Sorry, it's too much code for me to try to sift through right now,

This could help you though:

In IE, go to Tools -> Options.  Go to the Advanced tab.  Under Browsing, uncheck items 2 and 3 ("Disable Script Debugging").  When you reload the page, you'll get a popup asking you if you want to debug the error (assuming you have something installed which will allow you to do so).

Explore More ContentExplore courses, solutions, and other research materials related to this topic.