码迷,mamicode.com
首页 > 其他好文 > 详细

页面嵌入隐藏iframe实现导出功能

时间:2016-11-06 22:36:10      阅读:205      评论:0      收藏:0      [点我收藏+]

标签:nload   box   utf-8   one   targe   port   ext   source   tar   

 <div style="display: none">
	<form action="" name="exportExcel" id="exportExcel" target="export
		method="post" accept-charset="utf-8"></form>
	<iframe name="export" id="export"></iframe>
 </div>

  

var f = document.getElementById(‘exportExcel‘);
var actionUrl = ‘envElecPriceAction!downLoadDetailFrist.action?envElecPrice.beginTime=‘ + beginTime
	+ ‘&envElecPrice.endTime=‘ + endTime
	+ ‘&envElecPrice.zoneId=‘  + zoneId
	+ ‘&envElecPrice.pollSourceId=‘ + pollSourceId
	+ ‘&envElecPrice.pollSourceName=‘ + Ext.getCmp(‘sourceNameId33‘).getValue()
	+ ‘&envElecPrice.labelId=‘ + Ext.getCmp(‘groupLabelComboBoxId3‘).getValue()
	+ ‘&envElecPrice.polluteName=‘+ polluteData;
f.action = actionUrl;
f.submit();

  

页面嵌入隐藏iframe实现导出功能

标签:nload   box   utf-8   one   targe   port   ext   source   tar   

原文地址:http://www.cnblogs.com/blog-cq/p/6036450.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!