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.hr ef.indexOf("=") ;
begin = top.location.hr ef.indexOf("?") ;
if (begin > 0 )
{
theData = top.location.hr ef.substring(be gin+1,location. href.length);
theData = unescape(theDat a);
..........
--
what I need to do is pass the filename without the + sign and whatever
follows it.
So if the string passed is:
I want to be able retrieve only the string up and including the = sign.
ie.: http://philippeoget.50megs.com/?IT_S...nformation.htm
I tried:
theData = top.location.hr ef.substring(be gin+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.hr ef.indexOf("=") ;
begin = top.location.hr ef.indexOf("?") ;
if (begin > 0 )
{
theData = top.location.hr ef.substring(be gin+1,location. href.length);
theData = unescape(theDat a);
..........
--
what I need to do is pass the filename without the + sign and whatever
follows it.
So if the string passed is:
I want to be able retrieve only the string up and including the = sign.
ie.: http://philippeoget.50megs.com/?IT_S...nformation.htm
I tried:
theData = top.location.hr ef.substring(be gin+1,location. href.length-beginFrom);
but it doesn't like it..
TIA
Regards
Phil
Comment