View Full Version : Flex & javaScript
maxy83
04-27-2009, 04:18 PM
Hi i have a problem. I'm working with a grid in flex. When double click on a row, i open a popup windows that show some detail ao selected row in html ad js page. i would like to know when i close the popup windows the result of a js function how can i do this?
Thank's
MaX
wvxvw
04-27-2009, 04:28 PM
Can you clarify a bit... sorry to say it's difficult to understand what you're asking...
But I'll try to take a guess :)
<body onbeforeunload="window.opener.notifyFlash()">
maxy83
04-27-2009, 05:30 PM
Sorry for my english... i try again.
when i doubleclick to a row in datagrid, i open a popup windows that contain an html page. This page display the records detail and allow user to modify.
When a user close the page, this write down value to a database and return a value to a javascript. I would like to retrieve this value also in flex is possible?
i hope is better now sorry and thank's
MaX
wvxvw
04-27-2009, 06:45 PM
So, my guess was close:
call a JS function in the window.opener that will further call a function in your SWF, surelly you may transfer parameters to it too.
Look into ExternalInterface class for more details about how you pass arguments from / to JS.
maxy83
04-28-2009, 08:33 AM
ok i will try to do this, thank's
MaX
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.