Hi ,
I am trying to build a servlet url in a Javascript function like this.
function ExportReport()
{
// colsort is a hidden variable
var sortcol = document.forms[0].colsort.value;
document.forms[0].action = "RptEntBySalesPerson?spid=${spdata.spId}&stid=${spdata.stId}&isst=${isst}&colsort=sortcol";
document.forms[0].submit();
}
The Probem is with the &colsort=sortcol part . Its interpreting colsort as a string and not as a variable which is declared above . How can force it to intrepret as a variable.
Any Help will be appreciated.
Regards
Deb
I am trying to build a servlet url in a Javascript function like this.
function ExportReport()
{
// colsort is a hidden variable
var sortcol = document.forms[0].colsort.value;
document.forms[0].action = "RptEntBySalesPerson?spid=${spdata.spId}&stid=${spdata.stId}&isst=${isst}&colsort=sortcol";
document.forms[0].submit();
}
The Probem is with the &colsort=sortcol part . Its interpreting colsort as a string and not as a variable which is declared above . How can force it to intrepret as a variable.
Any Help will be appreciated.
Regards
Deb