I have a textbox with id kTb. When I click the button after entering some value in the textbox, the below changeV(str) is called inside a javascript ('onClick="changeV(kTb.value)"'). The 'alert(str)' gives me the value I entered in the textbox but when I pass it 'urll = "uSetENV.cgi?kullaTest=str"', I am NOT getting the entered value, its just str. Could you please let me know how to pass/get the entered value, kindly let me know if I am NOT clear, thanks.
==================================================================================
function changeV(str)
{
alert("starting change value");
alert(str);
urll = "uSetENV.cgi?kullaTest=str";
var reqq
//fw_setenv kullaTest str;
if (window.XMLHttpRequest) {
reqq = new XMLHttpRequest();
reqq.open("GET", urll, true);
reqq.setRequestHeader( "If-Modified-Since",
"Sat, 1 Jan 2000 00:00:00 GMT" );
reqq.send(null);
// branch for IE/Windows ActiveX version
} else if (window.ActiveXObject) {
reqq = new ActiveXObject("Microsoft.XMLHTTP");
if (reqq) {
reqq.open("GET", urll, true);
reqq.setRequestHeader( "If-Modified-Since",
"Sat, 1 Jan 2000 00:00:00 GMT" );
reqq.send();
}
}
alert("done change value");
}