Thursday, 10 November 2016

jQuery "$(document).ready(function () {" equivalent in Javascript







I want to wait until an ASP.NET datagrid is resized correctly before showing a popup message. This works great:




$(document).ready(function () { showpopup(); });


But I need to acheive it without jQuery. I've tried many ways:



$(window).bind("load", function() {showpopup();}

$(function() { showPopup();}



but this doesn't work.

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...