Click to See Complete Forum and Search --> : delimiters
Beach Bum
05-31-2003, 04:09 PM
I need to make this statement work:
document.write "<a class="link" onfocus="this.blur()" href="javascript:changeFrame('1')">One</a><br>";
It does not work because I need three levels of delimiters but am only using " and '. I have the " around the whole thing. Then I have another set of " around parmeters. Then I have ' on the inside.
I need three sets of delimiters. So besides " and ' what else works? Or how can I do this?
Nevermore
05-31-2003, 04:29 PM
document.write("<a class=\"link\" onfocus=\"this.blur()\" href=\"javascript:changeFrame('1')\">One</a><br>");
Beach Bum
05-31-2003, 04:40 PM
Works great . . . Thanks.
Charles
05-31-2003, 05:48 PM
Originally posted by Dave Clark
Maybe six of one and half a dozen of the other ... Just to keep my head straight, I make it a rule to always use single quotes in JavaScript, double quotes in HTML and the 'q' operator in Perl.
Nevermore
06-01-2003, 03:29 AM
I just seem to naturally reach for doubles for everything. Probably not the best strategy in the world...
Charles
06-01-2003, 05:12 AM
Originally posted by cijori
Probably not the best strategy in the world... Especially when you are working with Perl where single and double quotes have different meanings.
Nevermore
06-01-2003, 05:14 AM
I learnt Perl a while ago and have never found anything to use it for, so I now know PHP much better, and can use that for most things Perl can do.
Charles
06-01-2003, 05:22 AM
Originally posted by cijori
[I] can use that for most things Perl can do. Using PHP can you accidentally erase one hundred or so files on your local hard drive? I use Perl for my "pair of pliers" on my desktop.
Nevermore
06-01-2003, 05:26 AM
LOL