2011-01-29 140 views
0

我需要打开付款系统窗口。窗口通过iFrame打开。在闪存(SWF)产生呼叫到ExternalInterface的IFrame窗口闪烁

if (ExternalInterface.available) { 
ExternalInterface.call("ShowWebSite", "http://myService.com/show_form?app_params=testable_app_params&format=iframe&sig=54222d8a1c2a9412b91bc0abe62e8040&ts=1296285802"); 
       } 

闪光灯的设置参数:params.wmode = “不透明”;

调用JS功能:

<script laguage='javascript'> 
     function ShowWebSite(url) 
     { 
      //Try any way 
      document.getElementByID('iFrameID').src=url; 
     //parent.frames['iFrameID'].location.href=url; 
     //window.frames.iFrameID.location.href=url; 
     } 
    </script> 
// to body 
<iframe id="iFrameID" width="430" height="400" scrolling="no" style="border: 1px solid #ccc;"></iframe> 

一切都应该工作,但窗口不会打开。

回答

1

JavaScript是大小写敏感的:

document.getElementById()