javascript - Communication between pop up window and original opener -
i trying build integrated payment solution onto existing site.
i have popup window opens third party payment processor page when submit shopping cart contents form.
i want able communicate original 'opener' page once payment process complete.
my problem there 2 or 3 stages on payment processor side, , once complete allow load custom url.
i want load blank page call javascript function closes popup , moves original mainpage onto url.
i have tried using javscript function window.opener refer main page, not work window opened mainpage no longer there , success page descendant of original page.
how can communicate between pop , original main page given these restrictions?
ahhh! rookie mistake.
i trying access functions on opening page calling:
window.opener.mycustomfunction()
window case sensitive , should have read:
window.opener.mycustomfunction()
where mycustomfunction() defined on original opening page:
window.mycustomfunction = function(){ // code here }
defining function ensured public function.
Comments
Post a Comment