General information
Title:
Problem with datagrid in javascript
I face a problem with the datagrid.As i click a row on a datagrid,a form has to popup with the details shown corresponding to the row.I use a function in Javascript to popup the form.But the system hangs as i click the grid.
The following code is used in the code-behind file:
e.Item.Attributes.Add("onclick", "javascript:openeditrecibospage(" & pt_no & "," & ent_no & ",'" & amid & "','" & amdesc & "','" & consul_date & "','" & time_allocated & "'," & docid & ",'" & paymentMode & "', " & companyId & ")")
The following is used in inline:
function openeditrecibospage(pno,mno,amid,amdesc,cdate,timeallocated,docid,paymentMode,companyId)
{
try {
var pt_no,med_no,am_codigo,am_desc,consul_date,time_alloted,doc_id,company,paymentmode;
pt_no = pno;
med_no = mno;
am_codigo = amid;
am_desc = amdesc;
consul_date = cdate;
time_alloted = timeallocated;
doc_id = docid
paymentmode=paymentMode
company=companyId
//alert("PAT NO:" + pt_no);
//alert("MED NO:" + med_no);
//alert("AMDESC:" + am_desc);
//alert(company);
//alert(paymentmode);
//alert(med_no);
//"RecibosPage2.aspx?pt_no=" + pt_no + "&docid=" + docid + "&date=" + date + "&time=" + time;
//var ls_URL = "editvalor.aspx?pt_no=" + pt_no + "&medno=" + med_no + "&amid=" + am_codigo + "&amdesc=" + am_desc + "&date=" + consul_date + "&time=" + time_alloted + "&docid=" + doc_id ;
var ls_URL = "editvalor.aspx?pt_no=" + pt_no + "&medno=" + med_no + "&amid=" + am_codigo + "&amdesc=" + am_desc + "&date=" + consul_date + "&time=" + time_alloted + "&docid=" + doc_id + "&company=" + company + "&paymentmode=" + paymentmode;
ls_Features = "left=250,Top=190,scrollbars=no,width=700,height=275"
var ls_ReturnValue = window.open(ls_URL, "", ls_Features);
return true;
}
catch (e) {
alert(MSG_ERROR + "\n" + e.description + "\nFunction: openeditrecibospage()");
return false;
}
}
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only