c# - Load one control after another in aspx page -


i have asp.net page loading content using javascript. loading content third party.

and have image should loaded after javascript generates content in

but happens image showing before content loaded div, bit in appropriate. please suggest me method other way around.

i have put code sample this.

in aspx page.

<body> <div id="bodydiv" runat="server"> <script src="//platform.linkedin.com/in.js" type="text/javascript"></script> <script type="in/companyprofile" data-id="xxxxx" data-format="inline"></script> <a  id="closelink" href="http://www.xyz.com" class="closedbutton" runat="server">  <img id="closeimg" runat="server" src="images/remove.png"  /></a> </div></body> 

what method should use load image after content javascript loaded.

thanks !

your image loading page. hide image , make visible after delay after document loaded. , have referenced script load along html , when dom load, use settimeout , set delay load image. , load image after document load see below example.

$(document).ready(function () {     window.settimeout(function () {     // image code goes here     // set image display:block in code block     // example $('img').css('display','block');    }, 2000); }); 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -