The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Javascript command to close a VBmenu
What would be the command to close a vbmenu from an onclick event?
Here is my code below where the command should be. Code:
<script type="text/javascript"> vbmenu_register("MyMENU_$post[postid]");</script> </td> </tr> </table> <!-- end vBMenu control element --> <!-- start vBMenu popup element --> <div class="vbmenu_popup" id="MyMENU_$post[postid]_menu" style="display:none"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td class="thead">Send a PM</td> </tr> <tr> <td> <DIV> <form id="quickpm$post[postid]" action="http://www.quad4forums.com/forums/private.php" > <TEXTAREA name="message" rows="3" cols="30"></TEXTAREA> <input type="hidden" class="bginput" name="recipients" id="recipients" value="$post[username]"> <input type="hidden" class="bginput" name="title" id="title" value="You have received an ExpressPM from $bbuserinfo[username]"> <input type="hidden" name="do" id="do" value="insertpm"> <input type="hidden" name="pmid" id="pmid" value=""> <input type="hidden" name="forward" id="forward" value=""> <input type="hidden" name="receipt" id="receipt" value="0"> <P><center><a href="#" onclick="$('quickpm$post[postid]').request({ onComplete: function(){ alert('PM has been sent to $post[username]!') } }); return false;">Submit</a></center> </form> </DIV> </td> </tr> </table> </div> <!-- end vBMenu popup element --> Thanks. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|