divyac Posted March 25, 2009 Share Posted March 25, 2009 I am trying to load an iframe by clicking a flash button.I have written a javascript function in onclick event for loading the iframe as function sourceIframe(){document.writeln('<iframe id="iflogin" src="http://www.google.com" width="90%" height="70%" frameborder="1" scrolling="auto" style="visibility:visible;"></iframe>');} but still it is not working...kindly help me in this issue. Link to comment Share on other sites More sharing options...
Ingolme Posted March 25, 2009 Share Posted March 25, 2009 What method are you using to execute the Javascript from Flash? Link to comment Share on other sites More sharing options...
divyac Posted March 25, 2009 Author Share Posted March 25, 2009 What method are you using to execute the Javascript from Flash?its in "GET" method Link to comment Share on other sites More sharing options...
Ingolme Posted March 25, 2009 Share Posted March 25, 2009 Hmm, is there any ActionScript that you can show that's trying to execute the Javascript function? Link to comment Share on other sites More sharing options...
divyac Posted March 25, 2009 Author Share Posted March 25, 2009 Hmm, is there any ActionScript that you can show that's trying to execute the Javascript function?OnRelease{GetURL("java script:MyFuntion();","<iframe id>")} Link to comment Share on other sites More sharing options...
Ingolme Posted March 25, 2009 Share Posted March 25, 2009 OK, that's one way to do it, just remove the capital G from getURL. Now there's only one more thing to check. What HTML code are you using to put the Flash document on your website? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.