dojo.xhrPut
来源:互联网 发布:平板产品展示软件 编辑:程序博客网 时间:2024/06/06 16:39
*put创建,post更新
转载自:http://dojotoolkit.org/reference-guide/1.7/dojo/xhrPut.html#id7
dojo.require("dijit.form.Button");function sendText(){ var button = dijit.byId("submitButton2"); dojo.connect(button, "onClick", function(event){ // The parameters to pass to xhrPut, the message, and the url to send it to // Also, how to handle the return and callbacks. var xhrArgs = { url: "putIt", putData: "Some random text", handleAs: "text", load: function(data){ dojo.byId("response2").innerHTML = "Message put."; }, error: function(error){ // We'll 404 in the demo, but that's okay. We don't have a 'putIt' service on the // docs server. dojo.byId("response2").innerHTML = "Message put."; } } dojo.byId("response2").innerHTML = "Message being sent..." // Call the asynchronous xhrPost var deferred = dojo.xhrPut(xhrArgs); });}dojo.ready(sendText);
<b>Push the button to PUT some text.</b><br><br><button data-dojo-type="dijit.form.Button" id="submitButton2">Send it!</button><br><br><b>Result</b><div id="response2"></div>
掌握 Dojo 工具包,第 2 部分: XHR 框架与 Dojo
http://www.ibm.com/developerworks/cn/web/1202_zhongsq_widgetcompare/- dojo.xhrPut
- dojo
- dojo
- Dojo
- dojo
- dojo
- dojo
- Dojo Learning: Dojo.data
- dojo :dojo.xhrGet
- Dojo入门:初识Dojo
- Dojo入门:Hello Dojo!
- Dojo入门:初识Dojo
- Dojo Dojo Ajax
- DOJO(一) Hello Dojo!!
- dojo基础:dojo/request
- dojo的dojo.mixin
- dojo中的dojo/on
- dojo中的dojo/text!
- 解决Chrome插件chrome.tabs无效的Bug
- 在ubuntu中安装 Source-Navigator及使用手册(zz)
- 开始写博客
- android 零散笔记不定期更新 v17
- Android layout layout_weight属性理解
- dojo.xhrPut
- telnet 实现HTTP协议
- wince自动生成XIP映像文件的一种方法
- Eclipse 下 swt designer安装方法
- servlet学习笔记
- CE6下兼容和非兼容位图的深入分析
- Jinja2 简明使用手册(转载)
- installShield for VC6.0生成一个EXE安装包
- WINCE UI显示优化经验:使用GetUpdateRect和GetClipBox的体会