1

Facebox と呼ばれる mdoals 用の JQUERY プラグインを使用しています。私が抱えている問題は、何らかの理由で、私が書いている JQUERY が一度開いた Facebox Modal を変更できないことです。

コード スニペットは次のとおりです。

<script type="text/javascript">         
jQuery(document).ready(function($) {
$('a[rel*=facebox]').facebox()
});

function sendviewemail (action) {
$("#shareboxcontent").toggle();

$("#shareboxcontent").load("/notes/?blah", function(){
$("#shareboxcontent").slideDown();
});
}
</script>

<div id="sharebox" style="display:none;">
<h1>Send to your team</h1>
<h2><span id="" onclick="sendviewemail(); return false;">Or, send via email</span></h2>
<div id="shareboxcontent" style="display:none;">boooo</div>
</div>

具体的には、問題は「$("#shareboxcontent").slideDown();」にあります。そして.loadで。JQUERY はエラーなしで実行されていますが、JQUERY.LOAD から HTML を挿入したり、div を下にスライドしたりしていません。

何か案は?

4

1 に答える 1

0

First things first, I don't see any anchors (<a> tags) with rel="facebox". That's required to create at least the very first instance of the facebox. Try this:

<h2><a href="#shareboxcontent" rel="facebox">Or, send via email</a></h2>

Hope that helps.

于 2010-01-18T06:03:45.013 に答える