2010-05-20 2 views
0

IE8에서 새로운 Facebook Javascript SDK를 사용하여 버그를 발견했습니다.Facebook Javascript SDK의 FB.ui 버그 IE8에서

FB.ui(
{ 
    method: 'stream.publish', 
    display: 'dialog', 
    message: 'test', 
    attachment: { 
    name: 'test', 
    caption: 'test', 
    media: [ 
    {type: 'image', src: site_url+'test.jpg', href: site_url} 
    ], 
    description: (
    'test' 
    ), 
    href: site_url 
    } 
}, 

내 HTML 구조는 다음과 같습니다 :

은 내가 사용 후 대화 상자를 호출

<body> 
    <div id="content"></div> 
    <script type="text/javascript"> 
    var params = { 
    wmode: 'opaque', 
    allowScriptAccess: 'always', 
    quality: 'high', 
    allowFullScreen: "true" 
    }; 
    var attributes = { 
     id: 'test' 
     }; 


    swfobject.embedSWF("frontend/swf/stage.swf", "content", "100%", "100%", "10", params, attributes); 
    var site_url = 'http://test.com'; 
    </script> 

    <div id="fb-root"></div> 
    <script type="text/javascript" src="http://connect.facebook.net/en_US/all.js"></script> 
    <div id="like-dialog" style="display:none;"> 
    <div id="like-dialog-wrapper"> 
    <div id="like-dialog-close"></div> 
    <iframe src="http://www.facebook.com/plugins/likebox.php?id=99999999999&amp;width=292&amp;connections=0&amp;stream=true&amp;header=false&amp;height=395" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:395px;"></iframe> 
    </div> 
    </div> 
</body> 

는 CSS :

html, #content, body { 
    margin: 0; 
    height: 100%; 
    overflow: hidden; 
} 
#content { 
     z-index: 1; 
} 

내가 할 것은 :

    ,536,913,632 10
  1. 나는 내 스테이지를 임베드한다.

  2. 나는 FB.init 함수를 호출하고 FB.ui 함수를 호출하여 플래시를 오버레이한다.

IE8을 제외한 모든 공용 브라우저에서 작동합니다.

IE8에서 iframe을 포함하는 div는 div 뒤에 있으며, i는 Z- 색인을 설정하고 대화 상자의 절대 위치는 지정하지만 플래시를 포함합니다.

어떤 아이디어가 있습니까?

미리 감사드립니다.

답변

0

wmode를 투명하게 설정하십시오.

+0

난 이미 that.actually 시도 내가 좀 HTML5로 전환하여 내 문제를 해결. 나는 문제가 무엇인지 단서를 얻지 못했습니다 ... – Lukas

+0

그것은 나를 위해 일했습니다 !!! – ninja123

0

swfobject to 표준 임베디드 코드에서 전환.

는 (W 모드 투명와)

관련 문제