prakharbirla
05-30-2006, 03:40 AM
Hi,
I actually want to create a HTML page which has the capablity of reading a QueryString (x.html?querystring=test) and then using a hidden frame pass on the data to an ASP Script on another server.
For obtaining the QueryString i use the following:-
<script>
function getQueryVariable(variable) {
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if (pair[0] == variable) {
return pair[1];
}
}
}
</script>
<script>
alert( getQueryVariable("QueryString") );
</script>
Now my problem is to create a dynamic frame(hidden) who's location chnges according to the QueryString like http://someserver.com/sample.asp?QuerySting=TheValueGivenToTheHTMLFile
Thanks in Advance
I actually want to create a HTML page which has the capablity of reading a QueryString (x.html?querystring=test) and then using a hidden frame pass on the data to an ASP Script on another server.
For obtaining the QueryString i use the following:-
<script>
function getQueryVariable(variable) {
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if (pair[0] == variable) {
return pair[1];
}
}
}
</script>
<script>
alert( getQueryVariable("QueryString") );
</script>
Now my problem is to create a dynamic frame(hidden) who's location chnges according to the QueryString like http://someserver.com/sample.asp?QuerySting=TheValueGivenToTheHTMLFile
Thanks in Advance