Closed Thread Icon

Topic awaiting preservation: triple quotes Pages that link to <a href="https://ozoneasylum.com/backlink?for=8279" title="Pages that link to Topic awaiting preservation: triple quotes" rel="nofollow" >Topic awaiting preservation: triple quotes\

 
Author Thread
GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 08-25-2002 12:38

what can i do if i have more than two quotes in a statement. i only have two available: " and '

example with recursion:
<a href="#" onmouseover="javascript:document.write('<a href="heres the problem">')">

HZR
Bipolar (III) Inmate

From: Cold Sweden
Insane since: Jul 2002

posted posted 08-25-2002 13:22

\' or \"

_________________
http://hzr.dzygn.com

[This message has been edited by HZR (edited 08-25-2002).]

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 08-25-2002 23:25

sorry, doesnt work.
i also looked it up in O'Reillys reference, but there is no solution too.

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 08-25-2002 23:41

Try this:

<a href="#" onmouseover='javascript:document.write("<a href=\"heres the problem\">")'>blah</a>

or this:

<a href="#" onmouseover="javascript:document.write('<a href=\'heres the problem\'>')">blah</a>

. . : slicePuzzle

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 08-25-2002 23:56

Use the second one; single quotes are allowed in Javascript but not HTML. IE lets them work in HTML but all browsers don't have to.

Also, remove the "javascript:"; that's only for use in URLs, for instance, when you're putting it in the href="" attribute.

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 08-26-2002 00:06

nope, didnt work.
arent we inside html then again? so ' wouldnt be acceptet.

heres another example with recursion:
<a href="#" onclick="return myfunction('return myfunction(\'bla bla\')')">


edit: IT WORKS NOW! sorry for the misunderstanding and thanks for the help people.
it was my mistake with some php scripting. i am now using \\\\\' (yes, that's 5 \) to make that. hehe


[This message has been edited by GRUMBLE (edited 08-26-2002).]

« BackwardsOnwards »

Show Forum Drop Down Menu