Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Javascript Error - Warning Mod 2.0 by Modiffichi
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

JBaldwin
Junior Member

USA
137 Posts

Posted - 23 June 2006 :  08:39:47  Show Profile
I installed the warning mod and all works as it should with one exception. I keep getting a JS error:

Error: 'storeObjects' is undefined
Line: 167


The suspect code:
<script language="JavaScript">
<!-- hide from JavaScript-challenged browsers
function openWindowWarning1(url) {
  popupWin = window.open(url,'new_page','width=400,height=400')
}
function loadWindow(){
storeObjects;
changecontent;
}
window.onload=loadWindow
// done hiding -->
</script>
    <script language="JavaScript" type="text/javascript">
    function ChangePage(fnum){
    	if (fnum == 1) {
    		document.PageNum1.submit();
    	}
    	else {
    		document.PageNum2.submit();
    	}
    }
    </script>


I know very little JS and do not know where to begin with this one? If I remove that line of code "storeObjects;", it gives me the error:

Error: 'changecontent' is undefined
Line: 167

AbsolutelyFreerolls.com - Poker Freeroll Listings, Poker Forum and Poker News


Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 23 June 2006 :  08:44:25  Show Profile
storeObjects and changecontent should be functions; the errors mean they are missing from your code.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

JBaldwin
Junior Member

USA
137 Posts

Posted - 23 June 2006 :  10:19:12  Show Profile
hmmm, I looked through all of the files incuded with the mod, and see no instances of storeobjects or changecontent anywhere. The only instance of loadwindow that I see is int he actual code above. Do I need these functions then if I do not see any references to those functions at all anywhere?

*** EDIT: Ok, If I comment out that function (loadwindow and the line immediately after that function (window.onload=loadwindow), the page loads fine with no errors and the mod still works properly. I'm thinking this could be an old part of the mod by Crash (pre-Modiffichi changes)? Oh well...it works now error free.

AbsolutelyFreerolls.com - Poker Freeroll Listings, Poker Forum and Poker News



Edited by - JBaldwin on 23 June 2006 10:28:48
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 23 June 2006 :  18:30:53  Show Profile  Visit modifichicci's Homepage
That is the original code ogf crash,, I have used his file and it is working properly in quite all forums, but if with your changes it works, you are wellcome!!

I have updated the zip to correct some bugs in admin_warning, pop_warning and pop_warn_message. Now the formatting is shown properly and it works from admin page also.

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 1.49 seconds. Powered By: Snitz Forums 2000 Version 3.4.07