Force
09-09-2003, 04:38 PM
I've using the following script to parse variables being received by the page, and then I want to append them to the redirect. I can't quite seem to get the variable url to append properly. Can anyone give me an assist? I think that I'm all around it.
Again, thanks for the help
Mark
<script language="JavaScript">
function urlconvert(){
var qs = location.search.substring(1);
var nv = qs.split('&');
var url = new Object();
for(i = 0; i < nv.length; i++)
{
eq = nv[i].indexOf('=');
url[nv[i].substring(0,eq).toLowerCase()] = unescape(nv[i].substring(eq + 1));
}
window.location="https://www.myserver.com/index.html?+url";
}
</script>
Again, thanks for the help
Mark
<script language="JavaScript">
function urlconvert(){
var qs = location.search.substring(1);
var nv = qs.split('&');
var url = new Object();
for(i = 0; i < nv.length; i++)
{
eq = nv[i].indexOf('=');
url[nv[i].substring(0,eq).toLowerCase()] = unescape(nv[i].substring(eq + 1));
}
window.location="https://www.myserver.com/index.html?+url";
}
</script>