0
您好我有一個jQuery選項卡。在每個標籤上點擊我想加載一個新頁面。我使用的是iframe,但是當標籤切換隻有源被更改時,加載事件不會發生。我該如何解決這個問題?加載aspx頁面切換使用jquery
CODE ......
功能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>