Forum Moderators: open
[example.com...]
I want to get the 12345678 and pass it to another script.
Can this be done in javascript or do I need something like ASP?
The site's in ASP, btw.
Thanks.
yours works nicely. it brings up a box with the current page on it. how would i then pass that to the following code:
<%
URL="http://www.EXAMPLE.com/"
fullurl="search.asp?searchbox3=NUMBERGOESHERE
response.redirect URL & fullurl
%>
I'm trying to have a directory where someone could type WWW.EXAMPLE.COM/ISBN/123333333 and then get redirected to the right page, without having to go through the site navigation. (Where 123333333 is the ISBN number)
The other code didn't work with my cart - not much does I'm afraid...
If so, try this:
<script language=javascript>
<!--
function tellDir() {
montage=window.location.href.split("/");
simple=montage.length-2;
final="";
for(var i=0;i<=simple;i++)
{
final=final+montage[i]+"/";
}
alert(final)
}
//-->
</script>
<body onLoad=tellDir()>
Getting a part of a string in JS [webmasterworld.com]
Inserting the filename by JavaScript [webmasterworld.com]
HTH