Greenguy's Board


Go Back   Greenguy's Board > Link Lists & Getting Listed
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2004-02-21, 04:22 PM   #1
codymc12
WHO IS FONZY!?! Don't they teach you anything at school?
 
Join Date: Nov 2003
Posts: 45
When semicolons kill...

Okay... help... I'm using IE 6.0, and I keep getting an error on this page of my linklist:

http://www.touchyourmonkey.com/amateur.html

It keeps saying line 216 expected ';' - I have scoured that line, and the page in general, and I'm stumped. I don't get this error on the other category pages... the only thing I can think of is that I think that's the only page I have oxcash links on... and they seem to behave strangely within the admin of my script.

Anyway, if someone has too much time on their hands and can take a gander, I'd appreciate it. It's probably obvious, and I'm just not seeing it - I've been buried in html/templating code/macros for 2 days now.
codymc12 is offline   Reply With Quote
Old 2004-02-21, 04:47 PM   #2
Surfn
If you don’t take a chance the Angels won’t dance
 
Surfn's Avatar
 
Join Date: Aug 2003
Location: Earth on occasion
Posts: 8,812
Send a message via ICQ to Surfn
Looks like this: "homegrown Video';return true" is the culprit.
Surfn is offline   Reply With Quote
Old 2004-02-21, 06:05 PM   #3
codymc12
WHO IS FONZY!?! Don't they teach you anything at school?
 
Join Date: Nov 2003
Posts: 45
Hi - thanks, but I can't find that error. All I see is:

onMouseOver="window.status='Homegrown Video';return true"
codymc12 is offline   Reply With Quote
Old 2004-02-21, 06:21 PM   #4
codymc12
WHO IS FONZY!?! Don't they teach you anything at school?
 
Join Date: Nov 2003
Posts: 45
Solved... so silly.

Basically, it was the use of a ' within the window.status='blah blah'

Specifically (in case anyone else ever runs into this):

onMouseOver="window.status='Mike's Apartment';return true"

SHOULD BE

onMouseOver="window.status='Mikes Apartment';return true"

No apostrophe in the 'Mikes' - that is what was screwing everything up.

I hate code sometimes.
codymc12 is offline   Reply With Quote
Old 2004-02-21, 06:27 PM   #5
Surfn
If you don’t take a chance the Angels won’t dance
 
Surfn's Avatar
 
Join Date: Aug 2003
Location: Earth on occasion
Posts: 8,812
Send a message via ICQ to Surfn
I missed that No it won't work with 3 apostrophe's.
Surfn is offline   Reply With Quote
Old 2004-02-21, 06:27 PM   #6
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
Quote:
Originally posted by codymc12
Solved... so silly.

Basically, it was the use of a ' within the window.status='blah blah'

Specifically (in case anyone else ever runs into this):

onMouseOver="window.status='Mike's Apartment';return true"

SHOULD BE

onMouseOver="window.status='Mikes Apartment';return true"

No apostrophe in the 'Mikes' - that is what was screwing everything up.

I hate code sometimes.

You can also put a back slash in front of the apostrophe. This way it will read correctly. The back slash let JavaScript know to read the next symbol as what it is and not a function.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2004-02-21, 06:32 PM   #7
codymc12
WHO IS FONZY!?! Don't they teach you anything at school?
 
Join Date: Nov 2003
Posts: 45
Surfn - thanks for even looking!

Cleo - ah, I understand. I think the browser changed your backslash INTO an apostrophe... but I know what you meant. I've seen this in perl code as well - thanks for the tip.
codymc12 is offline   Reply With Quote
Old 2004-02-21, 06:34 PM   #8
codymc12
WHO IS FONZY!?! Don't they teach you anything at school?
 
Join Date: Nov 2003
Posts: 45
Nevermind, Cleo - I'm being a space case.

Moving, combined with working for a day and half buried in html code - it will fry the brain.

codymc12 is offline   Reply With Quote
Old 2004-02-21, 06:51 PM   #9
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
I put the correct code in my post but then when the board stripped out my back slash I edited my message so your aren't being a space case I did edit my post. LOL
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2004-02-21, 07:31 PM   #10
codymc12
WHO IS FONZY!?! Don't they teach you anything at school?
 
Join Date: Nov 2003
Posts: 45
LOL - don't do that!
codymc12 is offline   Reply With Quote
Old 2004-02-21, 10:17 PM   #11
venturi
No offence Apu, but when they were handing out religions you must have been out taking a whizz
 
Join Date: Apr 2003
Location: An Oasis atop a High Desert Mesa
Posts: 282
Send a message via ICQ to venturi
Yup, Cleo nailed the *real* problem with escaping the apostrophe with a backslash. However... You should always terminate that return true with a semi-colon also just for compatibility issues. Browsers are weird sometimes so it's best to be safe and ensure you go with the "standard" coding practices.
venturi is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:43 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc