Gossamer Forum
Home : General : Internet Technologies :

Escaping ' in JS ...

Quote Reply
Escaping ' in JS ...
For some reason, I can't seem to get this line to work :/

Tried;
["||'Brave New World' - Aldous Huxley", "javascript:do_move('browser.cgi?do=move_link_do;site=ADB;linkid=;catid=509','Literature/Novels/'Brave New World' - Aldous Huxley')", "/submit/cat_browse_new/img/icons/folder1.gif","/submit/cat_browse_new/img/icons/folder1.gif","/submit/cat_browse_new/img/icons/folder2.gif"],

..and
["||\'Brave New World\' - Aldous Huxley", "javascript:do_move('browser.cgi?do=move_link_do;site=ADB;linkid=;catid=509','Literature/Novels/\'Brave New World\' - Aldous Huxley')", "/submit/cat_browse_new/img/icons/folder1.gif","/submit/cat_browse_new/img/icons/folder1.gif","/submit/cat_browse_new/img/icons/folder2.gif"],

... but neither of them work :/

I'm aware of the escape() function in Javascript, but I'm not sure that will be any use to me? :|

TIA for any ideas. This is driving me mad Pirate

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Escaping ' in JS ... In reply to
Just a note: you should not wrap javascript call arguments into multiple lines.
Try to compress into 1 line, if it works. I had similar javascript problems.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [webmaster33] Escaping ' in JS ... In reply to
Thanks, but thats not the problem <G> I put it on multiple lines so it could be read ;)

Turned out I needed to escape some " as well as ', because they were interfering with the closing tags

CheersCrazy

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates