![]() |
I'm getting a Java error in IE6 that says document.getElementById is null or not an object.
I added the code to the headinclude, and uploaded the .js file. I did not make the forumhome changes as i didn't think they would be neccessary for this to work. Any ideas? edit: oops, wrong thread. I get this java error when doing your blinking PM code that uses the same .js file. I am also getting a javascript error once ina while here at VBT, so it might be something wrong on my system, though I had another person test it and they got the same error. |
only reason you would get an error with this is if you are calling the function chgStyle() without arguments (ie. chgStyle(class,id) is the appropriate function call ) - check all your file edits to confirm that you haven't left out a letter or number somewhere ...
One note for your debugging, does the error happen when you mouseover, or mouseout, or just when you load the page ? |
I accidentally posted this to the wrong thread. I haven't editted the mouseovers in this mod, I was installing your other mod that made Gary W welcome bar flash compatible with all browsers, and instead of simply flash, yours makes it trade colors with the breadbox and pmbox.
i have quadruple checked my file edits, and looked at the site in both firefox and IE6, and both give me the same error, line 3 its getting hung up on elementid, saying it has no properties. here is copy/paste from my current install: here is the error from firefox, its more detailed than the IE error: Error: document.getElementById("" + elementid + "") has no properties Source File: http://www.jade-dragon.net/forums/cl...in_chgclass.js Line: 3 from vbulletin_chgclass.js: HTML Code:
<!-- HTML Code:
<meta http-equiv="Content-Type" content="text/html; charset=$stylevar[charset]" /> HTML Code:
<script type="text/javascript"> |
Only thing I can suggest is that you Quote your javascript external call ...
Code:
<script type="text/javascript" src=$vboptions[bburl]/clientscript/vbulletin_chgclass.js></script> Code:
<script type="text/javascript" src="$vboptions[bburl]/clientscript/vbulletin_chgclass.js"></script> EDIT: I've updeated the original instructions to include the quotes ... and I'll have to upgrade to 3.0.1 at some stage to see if that breaks mine ... |
I tried that as well when tinkering, and I also removed the $vboptions[bburl] just to test as well, since none of the other scripts in that template had it included.
The only major hacks I am using are v3 Arcade and vB Advanced. would either of these possibly be causing the issue? |
As I said, I haven't upgraded to 3.0.1 - so I don't know what that breaks.
I'll look into it and get back to ya, OK ? |
sounds good. there was a navbar change in 3.0.1, ill try to find out too. I went to your demo site and it looks sharp though, so keep up the good work, and thanks for banging through this with me, I appreciate it.
|
Ahhhh - the NavBar would have caused this to maybe break - my NavBar is modded very heavily so I maybe wouldn't have noticed it even so (as I'm not that fussed about reverting my templates ;))
I'll look into it ;) |
I've upgraded to vB3.0.1 and no probs ...
One more suggestion - change the javascript in vbulletin_chgclass.js to match this (it's one letter different): HTML Code:
<!-- |
I fixed the prob. I had to add id=pmbox and id=breadbox to the navbar breadcrumb and login tables. i checked some sites and they didn't have these by default either, so I think one of your previous hacks may change the code to this?
on a side note, this is technically not cross browser due tot his, because nutscrape 4.0 doesn't recognize tables as elements, but i dont get why nutscrape 4 is even in the cross browser description. anyone with even an almost up to date browser will have no problems with your code. thanks for all the help, i didn't apply your most recent change since its working now, but if i have problems when i implement your hovering forums i'll come back and see if that resolves it. thanks for the great hack and support! |
All times are GMT. The time now is 06:28 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:
|