pmac38CDS
asked on
Passing values back from an aspx page(popup window) to an html page
I have an html page with a button called Donate. When the user clicks on that button an aspx page opens up in a pop up window. The aspx page contains data which is filled in by the end user. When the user clicks on the Submit Payment button the backend code calls PayPal's PayFlow Pro API to processes that information. If the transaction is successful it returns an Authentication Code. I would like to pass this Authenticate Code back to the HTML page.
Is there anyway I can achieve this ?
Thanks,
Aditya
Is there anyway I can achieve this ?
Thanks,
Aditya
ASKER
Those solutions won't work in my case since I need to process some information before closing the pop up. Also I need to pass the authentication code back to the parent form.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Nevermind I was able to solve this issue.I use the following to implement the functionality
Page.RegisterStartupScript ("myScript ", "<script language=JavaScript>signal Postback(' " + this.authCode + "','" + this.transactionResponse + "');</script>");
function signalPostback(authCode, transactionResponse) {
window.opener.document.get ElementByI d('TXT_Aut hCode').va lue = authCode;
window.opener.document.get ElementByI d('TXT_Res ponse').va lue = transactionResponse;
window.close();
}
Page.RegisterStartupScript
function signalPostback(authCode, transactionResponse) {
window.opener.document.get
window.opener.document.get
window.close();
}
window.opener.PranentMetho
window.opener.fileds...
please follow these links:
http://chiragrdarji.wordpress.com/2007/03/10/call-parent-windows-javascript-function-from-child-window-or-passing-data-from-child-window-to-parent-window-in-javascript/
http://stackoverflow.com/questions/4350223/passing-data-between-a-parent-window-and-a-child-popup-window-with-jquery
Thanks