The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Really Strange Javascript error

View previous topic View next topic Go down

Solved Really Strange Javascript error

Post by Dex♥ on December 4th 2012, 4:39 pm

Right now none of the jscript that are set to work on "All pages" are working.
Then, a couple hours later I noticed there was a jscript running that I don't have installed. The file name is 99142.js





This is the only error that I get when I use chrome, thanks to Rideem.
But, I had LGchat installed, just took it out, but the error still exists. Did I re-enable the jscripts too many times? 'Cause I did it like 2 or 3 times in a row to see if that would fix the scrolling down issue.


Last edited by Dex♥ on December 5th 2012, 4:34 am; edited 1 time in total

Dex♥
Forumember

Posts : 138
Reputation : 6
Language : Calgary

http://www.toonworldacademy.net

Back to top Go down

Solved Re: Really Strange Javascript error

Post by nextlevelgaming on December 5th 2012, 2:07 am

Every time you edit a javascript file it changes the name at the end of the script.
meaning.
If you have had
/99983.js went in and edited it and clicked save (even if you don't edit and click save)
the file will then be changed, for example code be like /83203.js

So check your console again.

nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Solved Re: Really Strange Javascript error

Post by Dex♥ on December 5th 2012, 2:30 am

@nextlevelgaming wrote:Every time you edit a javascript file it changes the name at the end of the script.
meaning.
If you have had
/99983.js went in and edited it and clicked save (even if you don't edit and click save)
the file will then be changed, for example code be like /83203.js

So check your console again.

Nope. I've checked that already. Thanks anyways though.

Dex♥
Forumember

Posts : 138
Reputation : 6
Language : Calgary

http://www.toonworldacademy.net

Back to top Go down

Solved Re: Really Strange Javascript error

Post by SLGray on December 5th 2012, 2:54 am

When I check my error console (Firefox) I get this error:
Code:
Timestamp: 12/4/2012 7:51:42 PM
Error: SyntaxError: syntax error
Source File: http://www.toonworldacademy.net/99566.js
Line: 1, Column: 60
Source Code:
e('<div class="before_post_message">Please no spam.</div>')});jQuery(document).ready(function(){jQuery('a[href="/u1"] sp


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36679
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Really Strange Javascript error

Post by Dex♥ on December 5th 2012, 3:07 am

slg wrote:When I check my error console (Firefox) I get this error:
Code:
Timestamp: 12/4/2012 7:51:42 PM
Error: SyntaxError: syntax error
Source File: http://www.toonworldacademy.net/99566.js
Line: 1, Column: 60
Source Code:
e('<div class="before_post_message">Please no spam.</div>')});jQuery(document).ready(function(){jQuery('a[href="/u1"] sp

When I check the url for that file I get
Code:

var CopyrightNotice='////////-------LGchat Version 4 for forumotion boards, made by LGforum. Copyright © by LGforum. All Rights Reserved. Use and/or modification of this script is not allowed without this entire copyright notice in the original, copied, or modified script. Absolutely no distribution without written consent from LGforum.--------\\\\.';var LGbgColor='#78ff00',newMsgColor='orange',newMsgSoundSrc='http://www.freesfx.co.uk/rx2/mp3s/2/1305_1256857800.mp3',updateTime=150,PMpermissions='1,2',savePermissions='1,2',LGchat_title='Toon World Academy Chatbox',LGautoLog=true,LG_sticky='Welcome to TWA\'s Chatbox. ';$(document).ready(function(){if(document.getElementById('logout')){$('#text_editor_textarea').before('<div class="before_post_message">Please no spam.</div>')});jQuery(document).ready(function(){jQuery('a[href="/u1"] span').each(function(){var t=jQuery(this).text();var splitT=t.split(" ");var halfIndex=Math.round(splitT.length/2);var newText="";for(var i=0;i<splitT.length;i++){if(i==halfIndex){newText+="<strong><span style='color:#0cf;'>"}newText+=splitT[i]+" "}newText+="</span></strong>";jQuery(this).html(newText)});jQuery('#chatbox a[href="/u1"]').each(function(){var t=jQuery(this).text();var splitT=t.split(" ");var halfIndex=Math.round(splitT.length/2);var newText="";for(var i=0;i<splitT.length;i++){if(i==halfIndex){newText+="<strong><span style='color:#0cf;'>"}newText+=splitT[i]+" "}newText+="</span></strong>";jQuery(this).html(newText)});jQuery('#chatbox_members a[href="/u1"] span').each(function(){var t=jQuery(this).text();var splitT=t.split(" ");var halfIndex=Math.round(splitT.length/2);var newText="";for(var i=0;i<splitT.length;i++){if(i==halfIndex){newText+="<strong><span style='color:#0cf;'>"}newText+=splitT[i]+" "}newText+="</span></strong>";jQuery(this).html(newText)})});

Which is basically a bit of my css, and most of my javascripts combined little by little. I doubt the syntax for this is correct. I swear, I don't right my own jscripts. I have a friend who know's a little about it do it. But, i've never had errors before until I re-enabled it multiple times just to double check if there was an issue.

Before that, apparently the thing that checks the login/out was the only error. Fixed that, however things are still messed up.

Dex♥
Forumember

Posts : 138
Reputation : 6
Language : Calgary

http://www.toonworldacademy.net

Back to top Go down

Solved Re: Really Strange Javascript error

Post by Dex♥ on December 5th 2012, 3:18 am

Rideem3 wrote:The 9---- javascript urls represent every javascript that meant for in all pages put into one javascript file.

So you'll have to check each in all pages script.

What do i look for?

Dex♥
Forumember

Posts : 138
Reputation : 6
Language : Calgary

http://www.toonworldacademy.net

Back to top Go down

Solved Re: Really Strange Javascript error

Post by Dex♥ on December 5th 2012, 4:06 am


Name color script:


And that's the other one that's in the error code.



Last edited by Dex♥ on December 5th 2012, 4:31 am; edited 1 time in total

Dex♥
Forumember

Posts : 138
Reputation : 6
Language : Calgary

http://www.toonworldacademy.net

Back to top Go down

Solved Re: Really Strange Javascript error

Post by Dex♥ on December 5th 2012, 4:34 am

Thank you so much! Very Happy
I am so glad you did this for me.

Dex♥
Forumember

Posts : 138
Reputation : 6
Language : Calgary

http://www.toonworldacademy.net

Back to top Go down

Solved Re: Really Strange Javascript error

Post by LGforum on December 5th 2012, 4:42 am

You mentioned you had LGChat installed, which will likely cause errors for you too now that it has been discontinued and unavailable. Please consider upgrading to AvacWeb Chat.

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: Really Strange Javascript error

Post by SLGray on December 5th 2012, 5:34 am

Topic Solved & Locked


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36679
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum