简体   繁体   中英

Need Flash popup to redirect parent

I'm working on a project with a Flash object I have no control over, though I can get changes made by the developer. What needs to happen is for the Flash object to POST a value to a php file on my server, and upon a successful result, redirect the parent window to a new url, and then close the popup.

It's POSTing correctly, but the redirect won't go to the parent.

Right now, we have this javascript happening in the Flash, which works with straight HTML:

opener.location='view_cart.php';
self.close();

And it's just closing the window without a redirect.

Any suggestions?

I should add - just a redirect was working fine, but in the Flash window, which is not what we want.

正如安迪·李(Andy Li)在对问题的评论中指出的那样,ExternalInterface是具有解决方案的JavaScript函数,该功能可以执行我们想要的操作。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM