Commit cda03678 authored by dpawar's avatar dpawar

solved browser compatibility


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95252 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 902483df
......@@ -28,7 +28,11 @@ function finishAction( value , frm)
samplItem["SAVE_SAMPLE_DATA"] = valueXmlString;
samplItem["RECONCILETYPE"] = reconciletype;
if(returnValueStr) {
post_to_url(path, samplItem, method);
//post_to_url(path, samplItem, method);
$.post('/ibase/webitm/jsp/ICRWizardSaveSample.jsp', { SAVE_SAMPLE_DATA: valueXmlString, RECONCILETYPE : reconciletype},
function(returnedData){
console.log(returnedData);
});
} else {
return false;
}
......@@ -57,9 +61,6 @@ function getCheckedValues(frm) {
if(siteL == sitecode) {
lamount = lamount + (parseFloat(drAmt) + parseFloat(crAmt));
} else if(siteR == sitecode) {
if(bilNo != null && bilNo.trim() != "") {
break;
}
ramount = ramount + (parseFloat(drAmt) + parseFloat(crAmt));
}
......@@ -79,13 +80,14 @@ function getCheckedValues(frm) {
xmlData += "</Detail>";
}
}
alert("Amount:::" + lamount +" : "+ ramount)
if(lamount == ramount) {
returnValueStr = true;
} else {
returnValueStr = false;
}
xmlData += "</Detail2>";
//alert("xmlData : " + xmlData);
return xmlData;
}
......@@ -152,5 +154,6 @@ function post_to_url(path, params, method) {
}
document.body.appendChild(form);
form.submit();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment