Durga Velusamy

Durga Velusamy

  • NA
  • 318
  • 113.7k

how to pass values form object to list

Jul 24 2015 2:50 AM
what mistake i had done here any one find pls. 
its shows error as cannot serialize non finite numbers .what is meaning pls find any one 
 is_connstring="get";
function fn_save()
{
try
{
debugger;
if (fn_validate() == false)
return;
var ls_object = new Object();
var details_arr = new Array();
ls_object.mcode = document.getElementById("ti_mcode").value;
ls_object.mpartno = document.getElementById("ti_mpartno").value;
ls_object.mname = document.getElementById("ti_mname");
ls_object.mclasscode = document.getElementById("ti_mclasscode").value;
ls_object.cmpcode = document.getElementById("ti_cmpcode").value;
ls_object.plant = document.getElementById("ti_plant").value;
ls_object.barea = document.getElementById("ti_barea").value;
details_arr.push(ls_object);
here  shows error as cannot serialize non finite numbers
Example.WebService.Update_Machine_details(is_connstring, details_arr, Update_result, fault);
}
catch (e)
{
alert(e);
}
}

Answers (2)