Gasolene
07-15-2003, 12:15 PM
question about the backslash escape key...
var url = "javascript:getPage(\"eventlist.php?mo=" + mo + "&count=" + count + "&\"" + ", 450, 350);";
url returns this...
javascript:getPage("eventlist.php?mo=6&count=14&", 450, 350);
-------------------------------------
var url = "javascript:getPage(\'eventlist.php?mo=" + mo + "&count=" + count + "&\'" + ", 450, 350);";
url returns this...
javascript:getPage(
------------
WHY???
the only difference is the \" is replaced with a \'
I want this (same as top but with single ' instead of double "
javascript:getPage('eventlist.php?mo=6&count=14&', 450, 350);
var url = "javascript:getPage(\"eventlist.php?mo=" + mo + "&count=" + count + "&\"" + ", 450, 350);";
url returns this...
javascript:getPage("eventlist.php?mo=6&count=14&", 450, 350);
-------------------------------------
var url = "javascript:getPage(\'eventlist.php?mo=" + mo + "&count=" + count + "&\'" + ", 450, 350);";
url returns this...
javascript:getPage(
------------
WHY???
the only difference is the \" is replaced with a \'
I want this (same as top but with single ' instead of double "
javascript:getPage('eventlist.php?mo=6&count=14&', 450, 350);