<div>It is resolved.</div>
<div> </div>
<div>I referred  <a href="http://drupal.org/node/399676">http://drupal.org/node/399676</a></div>
<div> </div>
<div>Instead of using &quot;drupal_json(array(&#39;status&#39; =&gt; TRUE, &#39;data&#39; =&gt; $output));&quot; , need to use &quot; print drupal_to_js ( array ( &#39;status&#39; =&gt; TRUE, &#39;data&#39; =&gt; $output ) ); exit &quot;.</div>

<div> </div>
<div>Thanks</div>
<div>Austin</div>
<div><br><br> </div>
<div class="gmail_quote">On Fri, Apr 1, 2011 at 5:17 AM, Austin Einter <span dir="ltr">&lt;<a href="mailto:austin.einter@gmail.com">austin.einter@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>Hi All</div>
<div>I am using Drupal 6.20.</div>
<div> </div>
<div>In a form I have a file field as below.</div>
<div> </div>
<div><em><font color="#ff6600"> $form[&#39;work&#39;][&#39;resume&#39;] = array(<br> &#39;#type&#39; =&gt; &#39;file&#39;,<br> &#39;#title&#39; =&gt; &quot;Upload Resume&quot;,<br> &#39;#description&#39; =&gt; &#39;Browse and select your resume.&#39;,<br>
 &#39;#required&#39; =&gt; FALSE,<br> &#39;#size&#39; =&gt; 50,<br> );</font></em></div>
<div> </div>
<div>I have a AHAH button in (in a different division)</div>
<div> </div>
<div><em><font color="#ff6600"> $form[&#39;skill_set_wrapper&#39;][&#39;allskills&#39;][&#39;moreskill&#39;] = array(<br>  &#39;#type&#39; =&gt; &#39;button&#39;,<br>  &#39;#value&#39; =&gt; t(&#39;Add / Remove Domain, Skills&#39;),<br>
  &#39;#weight&#39; =&gt; 1,<br>  &#39;#ahah&#39; =&gt; array(      <br>   &#39;path&#39; =&gt; &#39;resume_submit/form/moreskills&#39;,      <br>   &#39;wrapper&#39; =&gt; &#39;all-skills&#39;,      <br>   &#39;method&#39; =&gt; &#39;replace&#39;,      <br>
  ),<br> );</font></em></div>
<div> </div>
<div>In addition to that I have number of fields in my form. </div>
<div>If I <strong>do not</strong> browse and slect a file for &quot;file&quot; field, then AHAH button works fine (I can add multiple rows for skill add). </div>
<div>If I browse and slect a file for &quot;file&quot; field, then on clicking AHAH button,  I get a File download dialog asking &quot;Do you want to save this file or find a program online to open it&quot;. </div>
<div> </div>
<div>Did anybody face this issue previouly. What is the workout to avaoid the file download dialog.</div>
<div> </div>
<div>Regards</div>
<div>Austin</div><font color="#888888">
<div> </div></font></blockquote></div><br>