The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Really Strange Javascript error

4 posters

Go down

Solved Really Strange Javascript error

Post by Dex♥ December 4th 2012, 5: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
Really Strange Javascript error Weird_by_otakucyrus-d5n4izl


Really Strange Javascript error Javascript_codes_by_otakucyrus-d5n4iz4

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, 5:34 am; edited 1 time in total
Dex♥
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 December 5th 2012, 3: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
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♥ December 5th 2012, 3: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♥
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 December 5th 2012, 3: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


Really Strange Javascript error Slgray10

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

Male Posts : 51482
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Really Strange Javascript error

Post by Dex♥ December 5th 2012, 4: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♥
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♥ December 5th 2012, 4: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♥
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♥ December 5th 2012, 5: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, 5:31 am; edited 1 time in total
Dex♥
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♥ December 5th 2012, 5:34 am

Thank you so much! Very Happy
I am so glad you did this for me.
Dex♥
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 December 5th 2012, 5: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
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Solved Re: Really Strange Javascript error

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

Topic Solved & Locked


Really Strange Javascript error Slgray10

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

Male Posts : 51482
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

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