2012-01-21 4 views
0

私のページにJS関数があり、ページが読み込まれると、自分のsfwコンテンツが正常にロードされています。私のSWFを含むdivを表示するためにButtonClienClickを追加しました。コンテンツが、ボタンのクリックが発生すると、私のSWFは読み込まれません。ボタンのクリックでこのコンテンツを読み込むためのあらゆるSugestion?Button ClikのSWFコンテンツをロードする

function ShowDialogLoading() 
    { 
     $('#example').flash(
      { 
       src: 'Img/banner_aguarde.swf', 
       width: 902, 
       height: 320 
      } 
     ); 
     $("#example").dialog({ 
      create: function (event, ui) { 
       $(".ui-widget-header").hide(); 
       $(".ui-dialog-content").css("padding","0px"); 
      }, 
      modal: true, 
      title: 'Pagamento Pré-Pago', 
      resizable: false, 
      draggable: false, 
      width: 'auto', 
      height: 'auto' 
     });      
    } 


<asp:Button ID="btnProximoPasso" CssClass="form-button" OnClientClick="ShowDialogLoading()" runat="server" Text="Próximo Passo" 
          OnClick="btnProximoPasso_Click" /> 

答えて

1

この

<html> 
<head> 
<script src="http://cdn.jquerytools.org/1.2.6/full/jquery.tools.min.js"></script> 
</head> 
<body> 
<script> 

// use the jQuery alternative for flashembed.domReady 
$(function() { 

    // bind an onClick event for this second Flash container 
    $("#flash2").click(function() { 

     // same as in previous example 
     $(this).flashembed("/swf/flash10.swf"); 
    }); 
}); 
</script> 
<asp:Button ID="flash2" runat="server" Text="Load"/> 
</body> 
<html> 
を試してみてください
関連する問題