function Gridrowondblclick (strfile, Pkvalue, RowIndex) {
var Myjson = {
Value1: ",
value2: ",
Load:function () {
},
Serialize:function () {
var json = "";
for (var key in this) {
if (typeof This[key]! = ' function ') {
JSON + = (json! = ""? ",": ") + key +": ' "+ This[key] +" ' ";
}
}
JSON = ' {' + json + '} ';
return JSON;
}
}//end of Myjsoon
var obj = Geturlargs (); JS get URL parameter
if (typeof (Myjson)! = ' undefined ') {
myjson.value1 = obj.cs;// URL parameters
Myjson.value2 = Pkvalue;
}
$.ajax ({
Type: "POST",
ContentType: "Application/json",
URL: "/slnwlpz/kcwlpz.aspx/getckwish",
Data:myJSON.serialize (),
DataType: ' JSON ',
Success:function (Result) {
var json = eval (RESULT.D);
if (json = = "1") {
var r=rowindex*1+1;
var Grid = Document.all.grdTest;
var selectedrow = Grid.rows[r];
SelectedRow.style.backgroundColor = ' #76EE00 ';
}
if (json = = "0") {
Alert (' Configuration error ');
}
return false;
}//success:function (Result)
}); $.ajax
return false;
}
Get URL parameters in JS