This is not working

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,882
Messages
2,569,949
Members
46,272
Latest member
AntonKrv77

Latest Threads

Top