leohung
asked on
cross domain scripting with flash
I got problem while using flash call cross domain php file.
My current setting is:
Server A: static web hosting only. The domain is xxx.foo.com
Server B: php web server. The domain is yyy.foo.com
now,I want the server A flash file coult post some data to server B's php file.
But I found the server B didn't do anything after the form sent.
I tried if all the file upload to server B, all the function is fine, but if the flash and html file move to different server, it didn't work again. Do any one know how to fixed it?
My current setting is:
Server A: static web hosting only. The domain is xxx.foo.com
Server B: php web server. The domain is yyy.foo.com
now,I want the server A flash file coult post some data to server B's php file.
But I found the server B didn't do anything after the form sent.
I tried if all the file upload to server B, all the function is fine, but if the flash and html file move to different server, it didn't work again. Do any one know how to fixed it?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You should do what CyanBlue says.
Flash -> Server A -> Server B.
There is no other way to do it if the Server B isn't yours or you don't have access to it.
Flash -> Server A -> Server B.
There is no other way to do it if the Server B isn't yours or you don't have access to it.
Um... How about getURL("toServerB.php?vari able=value ", "_blank"); ???
CyanBlue
CyanBlue
ASKER
Actually, if I just want my flash "post/get" one variable (a email address) to server B but didn't need get back the variable. Could I use other function which could ignore the security? (currently, I am using loadVariables() to send out my variable and URL)