Have your check the web console for errors ? Could you try setting
breakpoints in both the Flex source of the IFrame component and the
wrapping HTML JavaScript at the first point it's then called ?
Tom
On 09/12/14 11:15, sanloflex wrote:
In my flex application, I'm having a flex-iframe in which I'm loading a
HTMLfile. I have to call a javascript function defined in loaded HTML file.
I'm making use of callIFrameFunction('jsfunctionname'). I'm using
flex-iframe-1.4.6.swc & flex 4.1 SDK.
But, the javascript function is not invoked anyhow and it is not executed. I
have placed the html file in the same directory where the mxml file resides.
I have embedded the code below. Kindly, if you got some ideas, please share
your views.
*<flexiframe:IFrame id="iFrameWithJSfunctions"
label="Map"
source="pageWithJSfunctions.html"
frameLoad="callShowAlert(event)"
width="400"
height="120"
overlayDetection="true" />
/**
* Call the 'showAlert()' JavaScript method.
*/
private function callShowAlert(event:Event):void
{
iFrameWithJSfunctions.callIFrameFunction('showAlert');
}*
Where *showAlert* is a js function in *pageWithJSfunctions.html* file.
--
View this message in context:
http://apache-flex-users.2333346.n4.nabble.com/How-to-call-JavaScript-function-in-Flex-iFrame-html-tp9035.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________