我正在努力使这两个图书馆共同努力。 但是,我不相信他们能够脱离方框。 在使用JSON-RPC plugin I之前,它成功地采用了标准$.ajax
的功能。 请让我举几个简短的例子,说明客户方如何看待这一职能,以及在欧经会方面这样做的切入点。
或者是否应当建立一个专门的ProtoRPC jQuery图书馆,使这项工作容易进行?
我正在努力使这两个图书馆共同努力。 但是,我不相信他们能够脱离方框。 在使用JSON-RPC plugin I之前,它成功地采用了标准$.ajax
的功能。 请让我举几个简短的例子,说明客户方如何看待这一职能,以及在欧经会方面这样做的切入点。
或者是否应当建立一个专门的ProtoRPC jQuery图书馆,使这项工作容易进行?
ProtoRPC没有使用JSON-RPC信息格式。 它使用一种更简单的格式,即每种APIC方法提供自己的终点,而不是使用作为申请词典一部分使用方法名称的终点。
此处请参看<编码>。
$.ajax({url: /hello.hello ,
type: POST ,
contentType: application/json ,
data: { my_name: Bob } ,
dataType: json ,
success: function(response) {
// The response is { hello: "Hello there, Bob!" }
alert(response.hello);
}
});
Do you really need a special jQuery library for this? I m not sure it can get much simpler.
我们当然需要为用户开发一个通用的假肢图书馆。 之后,最好写出一个与它合作的 j花板。
我实际上想到的是,让普罗托·班加支持JSON-RPC,将其作为一项单独的议定书,但可能会有一些关于JSON-RPC的内容,使其与普罗托·RPC不一致。 两点:
JSON的请求允许列出其参数中的任意类型。 ProtoRPC采用一种明确界定的类型。
JSON油田和清单可能含有任意的类型。 ProtoRPC油田和清单只能包含单一类型。
我祝愿你有更好的答案。
I m处理同一想法,并贴出一个类似的问题:here。
我发现,如果你提出要求,ProtoRPC确实会做出回应,如果你包含一种麻省理工学院:{内容Type:申请/json;charset=utf-8},在你的电网选择中,但仍然存在一个问题,即:ProtoRPC仅接受一个明确界定的参数,而 jqGrid则试图上载5个或5个如此高射的参数,即使你将它交给ST公司而不是GET。
目前,Im试图利用电网,把电离层放大。
How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.
I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...
Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...
Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...
I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...
Is it possible for someone to give me a few pointers on how to display a multidimensional array in the form of a bar graph? The array is multidimensional, with three elements in each part - and the ...
Is it possible to reload a form after file-input change? I have a form where the user can chose an image for upload. I also have a php script which displays that image resized. I only wonder if it ...
I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.