Ron Renninger
asked on
iframe and quthorize.net
I am using an iframe to display the form test.authorize.ent/payment /payment. when i press the contunite button on the authorize.net page it should close the iframe and take you to the final check out page. it opens in the iframe. Does anyone have an idea how to do this. I am also posting this to the authorize.net forum.
Below s the code i am using to call the iframe
<div id="myForm" style="display:none">
<div id="inline_content">
<script src="Scripts/colorbox/jque ry.colorbo x.js"></sc ript>
<script type="text/javascript">
$(".inline").colorbox({
inline: true,
opacity: 0.5, // overlay a bit less dark
innerWidth: 640,
innerHeight: 390,
onComplete: function () { document.OutputForm.submit () }
});
</script>
<form name="OutputForm" method="post" action="https://test.authorize.net/payment/payment" target="payframe" id="LinkTo" class="ShowForm">
<input type="hidden" id="InToken" name="Token" value="" />
</form>
<iframe id="payframe" name="payframe"></iframe>
</div>
</div>
Below s the code i am using to call the iframe
<div id="myForm" style="display:none">
<div id="inline_content">
<script src="Scripts/colorbox/jque
<script type="text/javascript">
$(".inline").colorbox({
inline: true,
opacity: 0.5, // overlay a bit less dark
innerWidth: 640,
innerHeight: 390,
onComplete: function () { document.OutputForm.submit
});
</script>
<form name="OutputForm" method="post" action="https://test.authorize.net/payment/payment" target="payframe" id="LinkTo" class="ShowForm">
<input type="hidden" id="InToken" name="Token" value="" />
</form>
<iframe id="payframe" name="payframe"></iframe>
</div>
</div>
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Open in new window
If the third party allows their page to be in an iframe then it should be on them to close it.
Apart from that you cannot interact with an external website (with some proviso's)