Log in

View Full Version : coopting vbmenu for bbcode tooltip: problem with EDIT


Birched
01-24-2009, 07:32 PM
Hi,

In an effort to create an easy tooltip-like pull down, I made the following bbcode:

<div class="vbmenu_popup" id="{option}_menu" style="display:none">
{param}
</div>

<span id="{option}">{option}
<script type="text/javascript">
vbmenu_register("{option}");
</script>
</span>

It seems to work, BUT if I 'EDIT' and then SAVE a post (in place), the updated text does not show the pull down and clicking on the text no longer activates the script. If I reload the page, it all works again.

Any ideas how to fix this to work with in-place editing?

Thanks for any input!