I'm a frontend dev working on a ASP.NET project but need some sort of javascript call back for everytime an update panel fires.
Due to a package we are using, the method fired needs to be within a jQuery ready function so that we have access to all dom elements.
However, the following code does not get called when it is within jQuery ready:
function pageLoad(){ alert('page loaded!') }
But this does work when outside of jQuery.
Anything I can do to get this pageLoad method to call inside jQuery?
Heres what I thought would work:
jQuery(document).ready(function() {
function pageLoad(sender, args) {
console.log("test");
}
});