![]() |
javascript and vbulletin-ajax editor
In my forum i have a javascript function for display the multiple images that used in user ranks. that save a bit repeating html in every page and works for my custom rank system.
Code:
function rank(number,color){ Code:
<script type="text/javascript">rank(5,'1');</script> The problem start when i apply the quickpost and editor in postbit. the new/edited message doesnt load the function. I read in internet alot for the problem and i found the solution (or i was think i do). The document.write doesnt work after the page is load and either work with xml, so, i try a DOM based solution like this: Code:
function rank(number,color,id){ Now the question is, what method i need to use for preserve the function after editing a post? The doc.write and DOM solutions fails and i not much skilled in the JS area :( Regards Victor |
All times are GMT. The time now is 05:51 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|