The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hello and Greetings,
I have a javascript that I am working on and like a lot of javascripts, part of it needs to be loaded in the head tags and the other part is in the body somewhere. The script works perfectly standalone in an html page but when I tried to load it into vBulletin using a file instead of the code which is quite long, Only the framework loads, none of the javascript variables display. The script is using a "window.onload="somefunction";" and I am wondering if that is the problem. I created a Template the contains the html that is suppose to display the javascript and a plugin that defines the template. I think its all correct but I'm mystified why it doesn't work. As I said, standalone using a simple html page it works beautifully? Any ideas? TIA |
#2
|
||||
|
||||
![]()
Have you tried without using the plugin to display it (though I dont see that causing a problem)
|
#3
|
|||
|
|||
![]()
Thanks for the reply. I did but what I discovered is that when I moved the onload function call out of the javascript file and into the template using :
Code:
<script language="JavaScript" type="text/javascript">onLoad="functioncall()"</script> Thanks again. I appreciate your comments. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|