Don't Happen anything After Get Data From Web Service
Don't Happen anything After Get Data From Web Service
Hi Allan
I'm a .net developer who very like your plugin. Thank you for good plugin. Now I have some problem when I get data from Server using asp.net Webservice. Likt this
ServerCode Fragment
[code]
[WebMethod]
public string GetAllCuttingDocument()
{
JavaScriptSerializer oSerializer = new JavaScriptSerializer();
//new CuttingDocument().GetAll() Get List of CuttingDocument(List)
string sJSON = oSerializer.Serialize(new CuttingDocument().GetAll());
return sJSON;
}
[/code]
And This is Result From GetAllCuttingDocument(). I use Firebug in Firefox
[code]
[{"ID":"CTS10-00001","Date":"29/10/2010","ProgramNo":"09-01206","JobNo":"AL09007","StyleNo":"SAY003","FactoryID":"F04","Shipment":"20/03/2010"},{"ID":"CTS10-00004","Date":"01/12/2010","ProgramNo":"10-00393","JobNo":"BE1000467","StyleNo":"10B4382LZ","FactoryID":" ","Shipment":"23/07/2010"},{"ID":"CTS10-00006","Date":"02/12/2010","ProgramNo":"10-00897","JobNo":"BE1000865","StyleNo":"02-B10141CO","FactoryID":"F03","Shipment":"26/11/2010"},{"ID":"CTS10-00007","Date":"07/12/2010","ProgramNo":"10-00897","JobNo":"BE1000865","StyleNo":"02-B10141CO","FactoryID":"F03","Shipment":"26/11/2010"},{"ID":"CTS10-00008","Date":"16/12/2010","ProgramNo":"09-01001","JobNo":"BL09723","StyleNo":"SBE062","FactoryID":"F05","Shipment":"20/05/2010"},{"ID":"CTS10-00009","Date":"16/12/2010","ProgramNo":"09-01001","JobNo":"BL09724","StyleNo":"SBE062","FactoryID":"F05","Shipment":"20/05/2010"},{"ID":"CTS10-00010","Date":"16/12/2010","ProgramNo":"09-01001","JobNo":"BL09725","StyleNo":"SBE062/1","FactoryID":"F05","Shipment":"20/05/2010"}]
[/code]
And This is Client Code
[code]
Cutting No
Job No
Program
Style
Cutting Date
Shipment
FaectoryID
Loading data from server
[/code]
[code]
$('#searchResultTable').dataTable({
"sScrollY": "280px",
"bJQueryUI": true,
"bServerSide": true,
"bProcessing": true,
"sAjaxSource": "../Service/OutputService.asmx/GetAllCuttingDocument",
"fnServerData": function (sSource, aoData, fnCallback) {
$.ajax({
"dataType": 'json',
"type": "POST",
"url": sSource,
"data": aoData,
"success": fnCallback
});
});
[/code]
My Problem
Don't have anything show in my table
i readed this discussion but I very confuse.
http://datatables.net/forums/comments.php?DiscussionID=683
Best Regard
Zabahey
I'm a .net developer who very like your plugin. Thank you for good plugin. Now I have some problem when I get data from Server using asp.net Webservice. Likt this
ServerCode Fragment
[code]
[WebMethod]
public string GetAllCuttingDocument()
{
JavaScriptSerializer oSerializer = new JavaScriptSerializer();
//new CuttingDocument().GetAll() Get List of CuttingDocument(List)
string sJSON = oSerializer.Serialize(new CuttingDocument().GetAll());
return sJSON;
}
[/code]
And This is Result From GetAllCuttingDocument(). I use Firebug in Firefox
[code]
[{"ID":"CTS10-00001","Date":"29/10/2010","ProgramNo":"09-01206","JobNo":"AL09007","StyleNo":"SAY003","FactoryID":"F04","Shipment":"20/03/2010"},{"ID":"CTS10-00004","Date":"01/12/2010","ProgramNo":"10-00393","JobNo":"BE1000467","StyleNo":"10B4382LZ","FactoryID":" ","Shipment":"23/07/2010"},{"ID":"CTS10-00006","Date":"02/12/2010","ProgramNo":"10-00897","JobNo":"BE1000865","StyleNo":"02-B10141CO","FactoryID":"F03","Shipment":"26/11/2010"},{"ID":"CTS10-00007","Date":"07/12/2010","ProgramNo":"10-00897","JobNo":"BE1000865","StyleNo":"02-B10141CO","FactoryID":"F03","Shipment":"26/11/2010"},{"ID":"CTS10-00008","Date":"16/12/2010","ProgramNo":"09-01001","JobNo":"BL09723","StyleNo":"SBE062","FactoryID":"F05","Shipment":"20/05/2010"},{"ID":"CTS10-00009","Date":"16/12/2010","ProgramNo":"09-01001","JobNo":"BL09724","StyleNo":"SBE062","FactoryID":"F05","Shipment":"20/05/2010"},{"ID":"CTS10-00010","Date":"16/12/2010","ProgramNo":"09-01001","JobNo":"BL09725","StyleNo":"SBE062/1","FactoryID":"F05","Shipment":"20/05/2010"}]
[/code]
And This is Client Code
[code]
Cutting No
Job No
Program
Style
Cutting Date
Shipment
FaectoryID
Loading data from server
[/code]
[code]
$('#searchResultTable').dataTable({
"sScrollY": "280px",
"bJQueryUI": true,
"bServerSide": true,
"bProcessing": true,
"sAjaxSource": "../Service/OutputService.asmx/GetAllCuttingDocument",
"fnServerData": function (sSource, aoData, fnCallback) {
$.ajax({
"dataType": 'json',
"type": "POST",
"url": sSource,
"data": aoData,
"success": fnCallback
});
});
[/code]
My Problem
Don't have anything show in my table
i readed this discussion but I very confuse.
http://datatables.net/forums/comments.php?DiscussionID=683
Best Regard
Zabahey
This discussion has been closed.