摘要: Hi,How can i add wait message in ajax request.I used the waitMsg config option , but is not showing the wait message while submitting the data.How can i add the wait message while submitting the data using the Ext.Ajx.requestPlease help methis is my codeCode:You could use:Code:just before your reque 阅读全文
posted @ 2011-01-05 15:32 qiang.xu 阅读(504) 评论(0) 推荐(0) 编辑
摘要: jsp下载文件demo1.前台2.后台1.前台http://www.javaeye.com/topic/446631为什么要选择js方式下载文件?因为下载地址需要根据你的点击,及选择来动态计算的。如果直接 ajax 请求下载地址,总会出现些问题...具体表现为文件直接以字符串形式返回。首先方案一,使用window.open(url),这样会有一个问题,因为会打开一个窗口!虽然这个窗口会在点击下载时关闭,但看起来确实不美观!方案二,使用Iframe ,具体见代码:Javascript代码functiondownloadFile(url){varelemIF=document.createElem 阅读全文
posted @ 2011-01-05 15:30 qiang.xu 阅读(13581) 评论(0) 推荐(0) 编辑