Serif Addons Forum
Discussions
Activity
Sign In
General
Page Preloader on page load only not on postback
caradegatito
November 2016
Quick question - I'm using the page preloader add on in an asp.net page and just want it to fire on initial page load, not on post back. What is the best way to accomplish this?
Thanks!
caradegatito
November 2016
Figured it out - in the event that someone else encounters this issue.
You can wrap the script that fires the pageloader add-on like this:
<% if(!IsPostBack) { %>
$(document).ready(function() {
setTimeout(function(){
$('body').addClass('loaded');
}, 1000);
});
<% } %>
Mick
November 2016
Thanks for the info
;-)
This discussion has been closed.
All Discussions
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
1,336
Suggestions
415
Addons
810
General
111
In this Discussion
caradegatito
November 2016
Mick
November 2016
By Serif Addons