The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I have this template (bbcode_*) that has a line of JS in it that will be executed whenever this template is shown on a page. Now this works perfect in all (?) situations, except when i inline edit the post.
Looking at the page source i can see that the (updated) JS script line is being output but the JS is never executed. I figure it has something to do with the way vB pushes the page update as XML, but can't get my finger on it (yet). Anyone had the same problem and found a solution for it? |
#2
|
|||
|
|||
![]()
As you guessed, if you send html via an ajax call (which is what happens when you inline update) and use it to set the html of an element, any javascript will not get executed. If you can arrange to have your own js function called when the update is received, and you can find the js code in question, you could call eval() on it (the js eval() function of course, not the php one). Someone else asked about this recently and I couldn't see an obvious way to do it without going in and editing the vb js code, but I'm not a js expert so there may be a way.
|
#3
|
|||
|
|||
![]()
I am also not a JS expert, and it gave me a headache even trying to find where this was done.
But got sidetracked by a server down issue, so haven't spend any time on this myself. Stilll open to suggestions if someone already solved this. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|