开发者

iframe loading problem in the jsp

<head>
<TITLE> Sample CIM Implementation </TITLE>
<script type="text/javascript">
      function init(){
            document.forms[0].submit();
      }
</script>

</head>
<BODY onload="init()">

<iframe id="authpopup" src="https://test.authorize.net/profile/manage">

</iframe>

<form type ="hidden" method="post" name="iframepopup"  id="formAuthorizeNetPage" style="display:none;">
      <input type="hidden" name="Token" value="<%=token%>"/>
</form>

</BODY>

</HTML>

i have a jsp page in which iam loading a iframe. The iframe is getting refreshed continuolusly i actually don want the iframe to g开发者_StackOverflow中文版et refreshed. This seems to flicker


As soon as the page loads, you call init(), which submits a form. This causes the page containing the iframe to reload, and thus also causes the iframe to reload. The page then calls init() again (since it has just reloaded) and so on.

Don't do that.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜