<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 "drupal_json(array('status' => TRUE, 'data' => $output));" , need to use " print drupal_to_js ( array ( 'status' => TRUE, 'data' => $output ) ); exit ".</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"><<a href="mailto:austin.einter@gmail.com">austin.einter@gmail.com</a>></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['work']['resume'] = array(<br> '#type' => 'file',<br> '#title' => "Upload Resume",<br> '#description' => 'Browse and select your resume.',<br>
'#required' => FALSE,<br> '#size' => 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['skill_set_wrapper']['allskills']['moreskill'] = array(<br> '#type' => 'button',<br> '#value' => t('Add / Remove Domain, Skills'),<br>
'#weight' => 1,<br> '#ahah' => array( <br> 'path' => 'resume_submit/form/moreskills', <br> 'wrapper' => 'all-skills', <br> 'method' => 'replace', <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 "file" field, then AHAH button works fine (I can add multiple rows for skill add). </div>
<div>If I browse and slect a file for "file" field, then on clicking AHAH button, I get a File download dialog asking "Do you want to save this file or find a program online to open it". </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>