P
Phil
hello
I am a trying to find the text between a ? mark and an = sign:
var theData;
var begin;
var thePageNo;
var beginFrom;
beginFrom = top.location.href.indexOf("=");
begin = top.location.href.indexOf("?");
if (begin > 0 )
{
theData = top.location.href.substring(begin+1,location.href.length);
theData = unescape(theData);
..........
--
what I need to do is pass the filename without the + sign and whatever
follows it.
So if the string passed is:
http://philippeoget.50megs.com/?IT_Study___Information.htm=13
I want to be able retrieve only the string up and including the = sign.
ie.: http://philippeoget.50megs.com/?IT_Study___Information.htm
I tried:
theData = top.location.href.substring(begin+1,location.href.length-beginFrom);
but it doesn't like it..
TIA
Regards
Phil
I am a trying to find the text between a ? mark and an = sign:
var theData;
var begin;
var thePageNo;
var beginFrom;
beginFrom = top.location.href.indexOf("=");
begin = top.location.href.indexOf("?");
if (begin > 0 )
{
theData = top.location.href.substring(begin+1,location.href.length);
theData = unescape(theData);
..........
--
what I need to do is pass the filename without the + sign and whatever
follows it.
So if the string passed is:
http://philippeoget.50megs.com/?IT_Study___Information.htm=13
I want to be able retrieve only the string up and including the = sign.
ie.: http://philippeoget.50megs.com/?IT_Study___Information.htm
I tried:
theData = top.location.href.substring(begin+1,location.href.length-beginFrom);
but it doesn't like it..
TIA
Regards
Phil