newFile:function(node){
try{
SniperDialog.show(node,"dialogHeight:300px;dialogWidth:660px;resizable:yes;scroll:no;status:no;help:no;");
var options = {method : 'GET',parameters:'method=findFile&bargainId=${bargain.id}&tstmp=' + new Date().getTime()};
new Ajax.Updater($('fileContentDiv'),'bargainAccessory.do?',options);
}catch(e){
window.alert(e.message);
}
}

本文介绍了一个创建文件功能的具体实现方式,包括使用对话框展示及通过Ajax请求更新文件内容区域的过程。涉及的技术包括JavaScript、Ajax及自定义对话框组件。
1464

被折叠的 条评论
为什么被折叠?



