F
ft310
forwardpath gets loaded with "http://rhodeisland-aa.org/tester/
meetings/disclaima.htm?mtgnum=764"
At "pos = forwardpath.indexof("disclaima.htm") ;" This stops with the
error "forwardpath.indexof is not a function"
I've been through a dozen variations of this code and could not get it
to work.
I originally started with "forwardpath.replace" but that was not
working either.
Any help will be appreciated
<<<<<<<<<<<<<<<<<<<<<<<<<< The code<script type="text/javascript">
var forwardpath = '' ;
var backpath = '' ;
var forwardpatha = '' ;
var pos = 0 ;
function SendOff()
{
forwardpath = self.location.href ;
backpath = forwardpath ;
pos = 0 ;
alert("self " + forwardpath) ;
pos = forwardpath.indexof("disclaima.htm") ;
forwardpatha = forwardpath.substring(0, pos) ;
pos = forwardpath.indexof("?") ;
forwardpatha = forwardpatha + "geomap.php" +
forwardpath.substring(pos) ;
return "return" + forwardpatha ;
}
</script>
</head>
<body>
<p>Forward Path A
<SCRIPT type="text/javascript">
document.write(SendOff()) ;
</script>
meetings/disclaima.htm?mtgnum=764"
At "pos = forwardpath.indexof("disclaima.htm") ;" This stops with the
error "forwardpath.indexof is not a function"
I've been through a dozen variations of this code and could not get it
to work.
I originally started with "forwardpath.replace" but that was not
working either.
Any help will be appreciated
<<<<<<<<<<<<<<<<<<<<<<<<<< The code<script type="text/javascript">
var forwardpath = '' ;
var backpath = '' ;
var forwardpatha = '' ;
var pos = 0 ;
function SendOff()
{
forwardpath = self.location.href ;
backpath = forwardpath ;
pos = 0 ;
alert("self " + forwardpath) ;
pos = forwardpath.indexof("disclaima.htm") ;
forwardpatha = forwardpath.substring(0, pos) ;
pos = forwardpath.indexof("?") ;
forwardpatha = forwardpatha + "geomap.php" +
forwardpath.substring(pos) ;
return "return" + forwardpatha ;
}
</script>
</head>
<body>
<p>Forward Path A
<SCRIPT type="text/javascript">
document.write(SendOff()) ;
</script>