asp.net - Loading gif to run using JQuery -
i'm using asp.net 3.5 webforms. basically, when user causes sort of postback (button click, switch tab, change dropdown, etc), want loading gif pop , end right after page loads. have asp.net solution (updateprogress) gets messy if use more 1 updatepanel. i'm not great jquery or javascript, figured must have solved problem before.
any help/assistance appreciated.
i don't know asp.net assume can access elements user can click on , create postbacks, first step @ jquery's click() function: http://api.jquery.com/click/
with this, can show hidden html element contains little loading gif hide page under page has loaded, use this:
#loader { display: block; position: fixed; width: 100%; height: 100%; top: 0; left: 0; background: url(../image/ajax-loader.gif) no-repeat center center #f1ede5; z-index: 2147483647; } ... <div id="loader"></div>
you can nice gif animation http://ajaxload.info/
Comments
Post a Comment