loadVars flash->js->php popup
- Started
- Last post
- 11 Responses
- jpea
so, i'm have an onRelease event in flash that i can successfully push my vars to php with loadVars. When I open the php page, i have javascript resizing and centering the new window after it loads. works all well and good, but I really want to get rid of the nav/status/location info and such in the window. the only way i can think of to do this is to call the javascript inside of flash, but then how do i use loadVars to push my variables into the php page?
- UndoUndo0
link?
- jpea0
http://thegearjunkie.com/rail-ri…
It works as is now. I just want it to ditch the extra browser stuff
- UndoUndo0
If yr passing the vars to php via GET - I'd call the javascript from flash and pass the vars you were going to pass to php to javascript instead.
Do your javascript resizing then pass the vars to the php page from javascript using window.open() appending the vars to the end of the URL argument.
- acescence0
call js function from within flash to create pop-up
use the same method you're using now, but target the pop-up you just created
- jpea0
thanks everyone. got it.
ended up thinking that since i was only passing 1 variable from flash, i could just pass it at the end of the the address instead of using loadVars. i now feel dumb.
- UndoUndo0
no need to feel dumb - theres always a few ways to do stuff like this - its knowing about all of them and choosing the right one
good luck
- jpea0
ok, since you all seem to know a good bit, how about this. the window that pops up doesn't resize correctly with js in IE or safari.
http://thegearjunkie.com/rail-ri…
it's pulling in an img based on a id corresponding to a path to the image from mysql. everything resizes fine if you reload the popup, but not otherwise (except in FF). any ideas?
I already tried window.location.reload but that'll just put it into a loop
- UndoUndo0
try calling the resize with an onload handler
- jpea0
yep, tried that too. tried many things but it didn't seem to want to work.
- acescence0
i tried your code on a blank, static page, and it works fine in those browsers. i would start by stripping it down to just the onload handler on a static page and start adding stuff until it breaks.