Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Learning to use JavaScript with ASP.Net
Message
From
22/05/2009 11:57:56
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
ASP.NET
Application:
Web
Miscellaneous
Thread ID:
01400821
Message ID:
01401543
Views:
40
>>
>>OK, now we are getting somewhere. The EditAfterNew script is showing a JScript runtime error even before it the call to inject it into the page. The yellow pointer is on an empty line and indicating "Object Required". What does this mean? Are blank lines not allowed in JavaScript? Is the script validated when the page is loaded?
>>Tim
>
>No, blank lines are fine. I'm not sure where it's error out. Has the call to EditAfterNew run and the pointer now inside of the function or right on top of the function? Check the function call to EditAfterNew - it's important that you have the single/double quotes correct in the string. JS code start running as soon as they've been loaded (for functions, they'll only run if there are calls to them).

These error messages are coming up as soon as the page is loaded and before any script is injected other than what is already on the page. Funny thing is, after just hitting ignore a few times, I get alert messages that are no longer even in my script. I had added them earlier when I was trying to test some things. My script is in a seperate file and linked to the page. What does it take to cause the scripts to be updated in the build process? I suspect this is why I am currently having an issue as the yellow arrow in the script debugger is not even on a valid line.

Also, last night I installed Firefox and firebug. I haven't entirely learned what I need yet to utilize this, but I am hopeful firebug will give me better access to the script checking process.
Thanks for your help Paul!
Tim
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform