Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using javascript libraries

Status
Not open for further replies.

dpark27

Programmer
Joined
Jan 23, 2008
Messages
6
Location
US
Hi,


I am trying to use the prototype library and I seem to get an error that says missing call to Sys.Application.notifyScriptLoaded(). But when I add 'if(typeof(Sys!==null))Sys.Application.notifyScriptLoaded()' to the prototype.js file, I get 'Sys is not defined'. Any ideas on how to resolve this?
 
the MS AJAX client libraries must also be referenced. the easiest way is to reference a scriptmanger on a master page. then reference protoype in the scripts tag
Code:
<asp:ScriptManager>
   <Scripts>
      <asp:ScriptReference Name="~/path/to/prototype.js" />
   </Scripts>
</asp:ScriptManager>

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top