Why does fileupload open a new window?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Eric

    Why does fileupload open a new window?

    I've got an app that opens a modal window and allows the user access
    to an INPUT TYPE=FILE. The user chooses the file to submit and hits
    the submit button.

    Everything works fine, the file is uploaded successfully but when
    doing this from a modal window, the submit causes a new window to
    appear. I'm pretty sure that it is doing this so IE can get a "real"
    window up to upload the file.

    The new window is not a response from the server. I know this because
    the URL is the upload CGI when it opens. Also... I tried submitting a
    file from a "normal" window and no new window appears.

    I really want a modal window here for the users.... any way to stop it
    from opening a new window?
  • Jim Ley

    #2
    Re: Why does fileupload open a new window?

    On 2 Jan 2004 13:26:34 -0800, poxbox@hotmail. com (Eric) wrote:
    [color=blue]
    >Everything works fine, the file is uploaded successfully but when
    >doing this from a modal window, the submit causes a new window to
    >appear. I'm pretty sure that it is doing this so IE can get a "real"
    >window up to upload the file.[/color]

    No, not at all, the reason is that showModalDialog gives you a dialog,
    not something that can load new pages.

    An IFRAME would be the solution.

    Jim.
    --
    comp.lang.javas cript FAQ - http://jibbering.com/faq/

    Comment

    • tudor

      #3
      Re: Why does fileupload open a new window?

      Eric wrote:
      [color=blue]
      > I've got an app that opens a modal window and allows the user access
      > to an INPUT TYPE=FILE. The user chooses the file to submit and hits
      > the submit button.
      >
      > Everything works fine, the file is uploaded successfully but when
      > doing this from a modal window, the submit causes a new window to
      > appear. I'm pretty sure that it is doing this so IE can get a "real"
      > window up to upload the file.
      >
      > The new window is not a response from the server. I know this because
      > the URL is the upload CGI when it opens. Also... I tried submitting a
      > file from a "normal" window and no new window appears.
      >
      > I really want a modal window here for the users.... any way to stop it
      > from opening a new window?[/color]

      I'm aso looking for an upload applet, I found a coupple but none works.
      Where did you get yours??

      Thanx!

      Comment

      Working...