如何在jq grid和json的帮助下表示数据库中的数据? [英] how to represent data from database with the help of jq grid and json ?
问题描述
我有一个与jgrid有关的问题...
嗨我正在使用webservice和所有的web服务和所有jgrid工作正常,我的价值也来到浏览器(firebug) ...但在此之后我无法在网格中显示到我的页面...
i有一个带有4个参数的表(Id,Name,EmailId,Location)
Hi, i have a issue related to jgrid ...
hi i am using webservice and all the web service and all the jgrid are working good and my value also comes to browser (firebug)... but after this i can't show in grid to my page...
i have a table with 4 parameter (Id,Name,EmailId,Location)
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "DesktopModules/Shopism_Anupam/anupamWebService.asmx/GridList",
data: "{}",
dataType: "json",
success: function (data) {
alert("hi");
},
error: function (result) {
alert("Error");
}
});
之后我检查我在firebug的价值,但在此之后我什么也做不了......
请帮助....
after this i check my value at firebug but i can't do anything after this...
please help....
推荐答案
.ajax ({
类型:POST,
contentType:application / json; charset = utf-8,
url:DesktopModules / Shopism_Anupam / anupamWebService.asmx / GridList,
data:{},
dataType:json,
success:function(data){
alert(hi);
},
error:function(result){
alert(Error);
}
});
.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "DesktopModules/Shopism_Anupam/anupamWebService.asmx/GridList", data: "{}", dataType: "json", success: function (data) { alert("hi"); }, error: function (result) { alert("Error"); } });
之后我在firebug检查我的价值,但在此之后我什么也做不了......
请帮帮....
after this i check my value at firebug but i can't do anything after this...
please help....
这篇关于如何在jq grid和json的帮助下表示数据库中的数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!