2011-01-29 145 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()