473,385 Members | 1,582 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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?
Jul 20 '05 #1
2 1569
On 2 Jan 2004 13:26:34 -0800, po****@hotmail.com (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/

Jul 20 '05 #2
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!
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Islamegy® | last post by:
I'm use FormView for editing a photo gallery... I add FileUpload control to upload images to the Gallery. I'm binding my Formview to objectdatasource i tried upload images onItemInserting &...
1
by: Marko Vuksanovic | last post by:
I am trying to implement an upload progress indicator using atlas, using the following workaround: http://forums.asp.net/thread/1321664.aspx This is the code in FileUpload.apsx file is as...
0
by: Christian Schlemmer | last post by:
If my code will run into the filesize-limit condition, the INSERT-statement will be executed. is there a way to avoid that? Protected Sub DetailsView1_RowInserting(ByVal sender As Object,...
4
by: Dave | last post by:
If you had a FileUpload control inside of a FormView...how would you use FindControl to access the FileUpload properties? Let me just say that...
1
by: Harinath | last post by:
Hi All, I am working on a portal using .net2.0. In one of my page, i have FileUpload control. I am doing some server side validation for form fields in general. if there is any validation...
1
shek124
by: shek124 | last post by:
I have using the Fileupload control for browse the files. whenever i click the browse button i want to open a specific folder in the Open dialog window .. could u knows the idea about...
3
by: Nathan Sokalski | last post by:
I have a FileUpload control which is inside an UpdatePanel which is inside a TabPanel. In my code, I use the FileUpload's HasFile and FileContent.Length properties. However, after I select a file,...
0
by: pauld | last post by:
Hello- Note: this is all VB/Asp.net 2.0 I have a formview(insert template) whose fields are bound to a datagrid that is connects to an MS SQL Server 2005 database. One of the options on the...
2
by: =?Utf-8?B?UGF1bA==?= | last post by:
I have a gridview with 2 columns. One column is a BoundColumn to a part number (string). One column is an ItemTemplate with a FileUpload control. There can be multiple rows (i.e. part numbers)...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.