<font class="Apple-style-span" face="arial, helvetica, sans-serif">Hi Marc,</font><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">I went through my previous modification for ajaxijfy the multiple row -> export option. </font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif">In that I have a post in "<b>$("#buttonGo.ajax").live('click')</b>" action and it post the form to the export.php file. After that the export.php file send the response header with the correct parameters which are.</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">Ex : when we select sql as the export type</font></div><div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-style-span" style="white-space: nowrap; -webkit-text-size-adjust: none; "><div class="header-name" style="box-sizing: border-box; color: rgb(84, 84, 84); display: inline-block; margin-right: 0.5em; font-weight: bold; vertical-align: top; white-space: pre-wrap; ">
Content-Disposition:</div></span><span class="Apple-style-span" style="white-space: nowrap; -webkit-text-size-adjust: none; "><div class="header-value source-code" style="box-sizing: border-box; white-space: pre-wrap; display: inline; margin-right: 100px; word-break: break-all; margin-top: 1px; ">
attachment; filename="jfakjalfa.sql"</div></span></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-style-span" style="white-space: pre-wrap; -webkit-text-size-adjust: none; "><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="white-space: nowrap; "><div class="header-name" style="box-sizing: border-box; color: rgb(84, 84, 84); display: inline-block; margin-right: 0.5em; font-weight: bold; vertical-align: top; white-space: pre-wrap; ">
Content-Type:</div><div class="header-value source-code" style="box-sizing: border-box; white-space: pre-wrap; display: inline; margin-right: 100px; word-break: break-all; margin-top: 1px; ">text/x-sql</div></span><br clear="all">
</span><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">and the content of the jfakjalfa.sql file is returned correctly as <span class="Apple-style-span" style="border-collapse: collapse; line-height: 18px; white-space: pre; "><span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); ">xmlhttprequest</span><span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); ">.</span><span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); ">responseText</span></span>. But the problem is javascript does not saves the content to the file. I went through some of the discussions which explains this kind of scenarios[1] and one of it suggest a jquery plugin as a solution[2].</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><br></font></div><div>Can you explain me how I can cope up with this problem. Thank you. </div><div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>
<font class="Apple-style-span" face="arial, helvetica, sans-serif">[1] - </font><a href="http://stackoverflow.com/questions/2186562/post-to-server-receive-pdf-deliver-to-user-w-jquery">http://stackoverflow.com/questions/2186562/post-to-server-receive-pdf-deliver-to-user-w-jquery</a><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; ">  </span></div>
<div>[2] - <a href="http://www.filamentgroup.com/lab/jquery_plugin_for_requesting_ajax_like_file_downloads/">http://www.filamentgroup.com/lab/jquery_plugin_for_requesting_ajax_like_file_downloads/</a></div></div><div><br>
</div><div>Regards,</div><div>Thilanka.</div><div><br></div><div>-- <br><div><span style="border-collapse:collapse;font-family:arial, sans-serif;font-size:13px"><div style="text-align:left">L G Thilanka Kaushalya     <br>
Computer Science & Engineering,    <br><div style="color:rgb(80, 0, 80)">University of Moratuwa,<br>Sri Lanka<span></span><br>                          <br></div></div>Connect with me at,<br>      Gmail        : <a href="mailto:lgtkaushalya@gmail.com" style="color:rgb(0, 0, 204)" target="_blank">lgtkaushalya@gmail.com</a><br>
      Twitter       : @thilanka_k<br>      Facebook  : Thilanka Kaushalya<br>      Yahoo       : <a href="mailto:lgtkaushalya@yahoo.com" style="color:rgb(0, 0, 204)" target="_blank">lgtkaushalya@yahoo.com</a></span></div>
<div>      Blog          : <a href="http://coders-view.blogspot.com/" target="_blank">http://coders-view.blogspot.com/</a></div><br><br>
</div>