Reply
Highlighted
Member
Posts: 7
Registered: ‎08-09-2017
Accepted Solution

accept hosted popup opens then quickly closes.

This only hapens with I place <button id="Button1" runat="server" onclick="AuthorizeNetPopup.openManagePopup()">Manage My Account</button> in side the page's existing Form tag.

 

<body leftmargin="0" background="../images/bg.gif" rightmargin="0">
    <form method="post" action="" id="formAuthorizeNetPopup" name="formAuthorizeNetPopup" target="iframeAuthorizeNet" style="display: none;">
        <input type="hidden" runat="server" id="Token" name="token" value="" />
    </form>
    <form id="Form1" method="post" runat="server">
        <input id="_SelectedID" type="hidden" name="_SelectedID" runat="server">
        <table cellspacing="0" cellpadding="0" width="100%" border="0">
<tr><td><button id="Button1" runat="server" onclick="AuthorizeNetPopup.openManagePopup()">Manage My Account</button></td></tr>

If I place it between the form tags it works correctly.

<body leftmargin="0" background="../images/bg.gif" rightmargin="0">
    <form method="post" action="" id="formAuthorizeNetPopup" name="formAuthorizeNetPopup" target="iframeAuthorizeNet" style="display: none;">
        <input type="hidden" runat="server" id="Token" name="token" value="" />
    </form>
<button id="Button1" runat="server" onclick="AuthorizeNetPopup.openManagePopup()">Manage My Account</button>
    <form id="Form1" method="post" runat="server">
        <input id="_SelectedID" type="hidden" name="_SelectedID" runat="server">
        <table cellspacing="0" cellpadding="0" width="100%" border="0">
<tr><td></td></tr>

Can any one shed some light on why this is happening?


Accepted Solutions
Solution
Accepted by topic author PaceDev
‎08-10-2017 02:52 PM
Member
Posts: 7
Registered: ‎08-09-2017

Re: accept hosted popup opens then quickly closes.

adding return false; to the button fixed the issue. I'm just guesing that the runat="server" was causing the postback and closing the window.

View solution in original post


All Replies
Solution
Accepted by topic author PaceDev
‎08-10-2017 02:52 PM
Member
Posts: 7
Registered: ‎08-09-2017

Re: accept hosted popup opens then quickly closes.

adding return false; to the button fixed the issue. I'm just guesing that the runat="server" was causing the postback and closing the window.

Member
Posts: 3
Registered: ‎03-24-2021

Re: accept hosted popup opens then quickly closes.

Thank you so much i got some more tips monitor for developers here while reading this post.

 

soundbar under 200 and How to connect Samsung soundbar to tv