The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Custom JavaScript and Quick Edit
I have a custom tag, implemented as plugin since the basic BBcode doesn't do it, that needs a JavaScript function call for full functionality.
Works just fine on new posts, page reloads, ... However, the initialization JavaScript function is not called when the post is modified via Quick Edit (inline Ajax / Edit). Is there some way around that problem? |
#2
|
||||
|
||||
Put the javascript in the showthread template?
|
#3
|
|||
|
|||
By now, I don't even think this is a VB problem, but, rather, a browser feature.
The plugin gets something like [bb] ... content ... [/bb] and returns something like Code:
<div id="myID"> ... modified content ... </div> <script type="text/javascript">myFunction("myID")</script> Is there an Ajax callback? Or some decent place to put an extra call without the need to edit any .js files? |
#4
|
||||
|
||||
A decent place to put your javascript function "myFunction"? As I said before, if you say it's missing in the showthread, then why not insert it into the SHOWTHREAD template?
|
#5
|
|||
|
|||
What I would need is something like "Hook: ajax_complete", but on the browser end, not server side.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|