Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Learning to use JavaScript with ASP.Net
Message
 
 
À
22/05/2009 11:57:56
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
ASP.NET
Application:
Web
Divers
Thread ID:
01400821
Message ID:
01401549
Vues:
45
>>>
>>>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

Hi Tim,

Check if this thread #1303934 can be of some help.

I do like using FireBug too.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform