Welcome to MSDN Blogs Sign in | Join | Help

Mike Ormond's Blog

In my world, things would be simpler than this...

News

  • Add to Technorati Favorites

    These postings are provided "AS IS" with no warranties, and confer no rights. The use of any script / code samples is subject to the terms specified here.

Calling Sys.Application.notifyScriptLoaded

Just noticed this: "Do not call the notifyScriptLoaded method from scripts that are embedded in assemblies. The script resource handler adds an instance of this call, and a second call will cause an error." having run into the error when playing around over the weekend. (That statement is from http://asp.net/ajax/documentation/live/ClientReference/Sys/ApplicationClass/SysApplicationNotifyScriptLoadedMethod.aspx).

Sure enough, when I inspect the scripts that's exactly what happens. So with reference to my previous post on Embedding Resources you should either remove / comment out that statement when you embed the script or set the NotifyScriptLoaded property of the relevant ScriptReference object to false.

Technorati Tags: ,
Posted: Monday, April 14, 2008 8:49 AM by MikeOrmond
Filed under:
New Comments to this post are disabled
Page view tracker