sachin
06-30-2003, 02:12 PM
Hi,
I have a url from which i reterive name value pair in javascript.
var utest = oGetArgs.book;
var sBooktxt;
if (utest.indexOf("undefined") == -1)
sBooktxt = oGetArgs.book;
else
sBooktxt = "" ;
Even though when utest is defined, the sBooktxt is getting
set to "undefined" , but it has to get set to "" when utest is
undefined.
Regards,
Sachin
I have a url from which i reterive name value pair in javascript.
var utest = oGetArgs.book;
var sBooktxt;
if (utest.indexOf("undefined") == -1)
sBooktxt = oGetArgs.book;
else
sBooktxt = "" ;
Even though when utest is defined, the sBooktxt is getting
set to "undefined" , but it has to get set to "" when utest is
undefined.
Regards,
Sachin