0

In my asp.net/c# solution, I am loading the jquery library with this

<SharePoint:ScriptLink ID="jquery_js" name="/_layouts/PDF Library/jquery-1.10.1.min.js" runat="server" OnDemand="False" Localizable="False" />

Now, in c# code, how can I insert javascript, that will only run when the jquery library is done loading and the dom is finished loading too. I can insert javascript like this:

ScriptManager.RegisterStartupScript(someControl, typeof(string), "AutoComplete", js_call, true);

Thanks.

omega
  • 40,311
  • 81
  • 251
  • 474

1 Answers1

1
$(window).load(function(){
   //this will run after dom is loaded
});
bobek
  • 8,003
  • 8
  • 39
  • 75