在 Ajax.InPlaceEditor 中传递ID值
2007-11-25 20:00
363 查看
导读:
此函数在 script.aculo.us 构架包的 controls.js 文件中。
首先,你先找到下面这句的位置:
Ajax.InPlaceEditor.prototype = {
initialize: function(element, url, options) {
把它修改为:
Ajax.InPlaceEditor.prototype = {
initialize: function(id, element, url, options) {
this.id = id;
然后再查找下面的类:
createEditField: function() {
在它后面加入下列代码:
//editID By iSLee
var editID = document.createElement("input");
editID.obj = this editID.type = "hidden" editID.name = "editID" editID.value = this.id;
this.editField = editID;
this.form.appendChild(this.editField);
//editID End
这样就可以在接收页用 Request.From[0] 来取得 ID 传过去的值了。把它修改为:
本文转自
http://blog.csdn.net/isleecn/archive/2007/07/26/1709446.aspx
此函数在 script.aculo.us 构架包的 controls.js 文件中。
首先,你先找到下面这句的位置:
Ajax.InPlaceEditor.prototype = {
initialize: function(element, url, options) {
把它修改为:
Ajax.InPlaceEditor.prototype = {
initialize: function(id, element, url, options) {
this.id = id;
然后再查找下面的类:
createEditField: function() {
在它后面加入下列代码:
//editID By iSLee
var editID = document.createElement("input");
editID.obj = this editID.type = "hidden" editID.name = "editID" editID.value = this.id;
this.editField = editID;
this.form.appendChild(this.editField);
//editID End
这样就可以在接收页用 Request.From[0] 来取得 ID 传过去的值了。把它修改为:
本文转自
http://blog.csdn.net/isleecn/archive/2007/07/26/1709446.aspx
相关文章推荐
- 在 Ajax.InPlaceEditor 中传递ID值
- ALV中调用Excel inplace时没能传递数据实例解决
- (翻译)就地编辑器(Inplace Editor)
- Script.aculo.us开发系列(七):InPlaceEditor控件的使用
- ASPxScheduler 自定义 InplaceEditor
- jquery-in-place-editor
- ALV中调用Excel inplace时没能传递数据实例解决
- Script.aculo.us InPlaceEditor 使用示例
- jQuery.ajax向后台传递数组问题
- Thinking in AJAX(一) —— AJAX - X
- Bootstrap进度条与AJAX后端数据传递结合使用实例详解
- Thinking in AJAX(一) —— AJAX - X
- 第一次用ajax做的demo(text方式传递数据)
- 掌握 Ajax,第 3 部分: Advanced requests and responses in Ajax
- java web开发:ajax技术(三)——JSON在服务器和浏览器之间的传递
- Http status: 200 OK ajaxOptions: parsererror thrownError: SyntaxError: Unexpected token < in JSON at
- File Upload using jQuery AJAX in ASP.NET Web API or Http handler (AJAX上传文件通过Web API或 http handler)
- Thinking in AJAX(一)
- JQuery Ajax WebService传递参数
- java adf 使用ajax传递参数中有中文乱码问题(转)