.net - Loading aspx page on tab switching using jquery -


hi have jquery tab. on each tab click want load fresh page . using iframe, while tab switching source changed loading event not takes place. how can solve this?

code......

function loadiframepage(url) {

    document.getelementbyid("ifrforms").src= url;  } 
<div style="float: none; height: 800px" onload="test">           <div id="tabs" style="font-size: 12px; width: 100%; height: 100%; visibility:hidden" onload="selectatab(2);">   <ul>                 <li><a href="#fragment" onclick="loadiframepage('cashreceipt.aspx')"><span>cash receipt</span></a></li>                 <li><a href="#fragment" onclick="loadiframepage('cashpayment.aspx')" ><span>cash payment</span></a></li>                 <li><a href="#fragment" onclick="loadiframepage('bankdeposit.aspx')"><span>bank receipt</span></a></li>                 <li><a href="#fragment" onclick="loadiframepage('bankwithdrawal.aspx')"><span>bank payment</span></a></li>                 <li><a href="#fragment" onclick="loadiframepage('journal.aspx')"><span>journal</span></a></li>             </ul>             <div id="fragment" style="width: 100%; height: 90%">                 <iframe src="cashpayment.aspx"  style="width: 98%; height: 100%" frameborder="0" scrolling="yes" id="ifrforms">                  </iframe>                 </div> </div> </div> 

one solution using seperate div , iframe each tab , load iframes on page load...hence ion tabswitching tell target div... slow down application... thats y searching new fast solution...


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -