Enter key in different form field displays file dialog

  •  08-28-2009, 6:33 AM

    Enter key in different form field displays file dialog

    I've tried both the "Live Support" and the support email and haven't gotten an answer on this question. My company is still in the evaluation phase of the AJAX Uploader, and if we can get past this problem, will be purchasing the control.
     
    I have the AJAX Upload control on an ASP.NET form with other fields, such as a TextBox for FirstName, LastName, etc. If I am in any of the TextBox controls and hit the enter key, instead of the form being submitted the file dialog box for the upload control gets displayed. This is not the preferred behavior as the upload is an optional field for the form.
     
    This is only happening in Internet Explorer and doesn't happen in Firefox.
     
    I know there is some javascript trickery that I could do to capture the keycode and if it's the ENTER key to submit the form via a javascript call, but I would really prefer to have a more straightforward approach that doesn't rely on javascript.
     
    Any help would be GREATLY appreciated. As I've said I've tried to contact the company for support but am disappointed with their response so far.
View Complete Thread