The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Here's the code of a simple page I'm using just to generate a uniform "look and feel" for some custom content:
Code:
<?php
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'main');
chdir('/full/url/to/my/forumsdir');
require_once('./global.php');
eval('print_output("' . fetch_template('mainpage') . '");');
exit;
?>
Why do I receive Javascript errors? This is in vB3.5 Beta 3. |
|
#2
|
||||
|
||||
|
Would be useful to know which JS errors exactly ...
|
|
#3
|
||||
|
||||
|
Error on line 2 -- object expected.
Error on line 506 -- object expected. |
|
#4
|
||||
|
||||
|
Those errors are (non-meaningful) IE error messages?
|
|
#5
|
||||
|
||||
|
Quote:
The page still loads correctly, but there's literally not difference between this new template I created and the standard "FORUMHOME" template. |
|
#6
|
||||
|
||||
|
Open the Page in Firefox and check if it still generates Errors.
If it does, please post htem (and hopefully they'll be more meaningful then) |
|
#7
|
||||
|
||||
|
Interesting! It doesn't generate errors in Firefox. But it does generate errors in Internet Explorer. I wonder why? The template is identical to the template code for FORUMHOME (which doesn't generate an error). Is the javascript path-specific?
|
|
#8
|
||||
|
||||
|
No, it shouldn't.
Anyway, IE is crap IMHO
|
|
#9
|
||||
|
||||
|
Quote:
|
|
#10
|
|||
|
|||
|
Could it be Microsoft's implementation of Java and what vB actually uses? What happens if you install "real" java from Sun on your PC?
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|