Why does fileupload open a new window?

Discussion in 'Javascript' started by Eric, Jan 2, 2004.

  1. Eric

    Eric Guest

    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?
     
    Eric, Jan 2, 2004
    #1
    1. Advertising

  2. Eric

    Jim Ley Guest

    On 2 Jan 2004 13:26:34 -0800, (Eric) wrote:

    >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.


    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.javascript FAQ - http://jibbering.com/faq/
     
    Jim Ley, Jan 3, 2004
    #2
    1. Advertising

  3. Eric

    tudor Guest

    Eric wrote:

    > 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?


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

    Thanx!
     
    tudor, Jan 24, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mr. SweatyFinger

    why why why why why

    Mr. SweatyFinger, Nov 28, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    921
    Mark Rae
    Dec 21, 2006
  2. Mr. SweatyFinger
    Replies:
    2
    Views:
    2,072
    Smokey Grindel
    Dec 2, 2006
  3. Gordon
    Replies:
    3
    Views:
    323
    Steven Burn
    Apr 16, 2004
  4. PC HUA
    Replies:
    2
    Views:
    436
    PC HUA
    May 19, 2004
  5. Replies:
    1
    Views:
    253
Loading...

Share This Page