edikaufmann
12-31-2005, 08:50 AM
Environment: W2kServer, IExplorer6, VS.NET 2003
Application: two-frame window: name="content" src="c.aspx" and name="main" src="m.aspx"
In 'c.aspx' I issue:window.location.href = "ftp://..../SOS.doc" (or .xls, .pdf etc)
The 'ftp' in turn correctly gives me the 'File Download' prompt to either 'open' or 'save' the downloaded file.
All is ok when I opt to 'save'. When I opt to 'open' the file shows up in the 'content'-iframe --> However, I'd rather have it in the 'main'-iframe or even better a NEW window alltogether.
A) 'main'-iframe:
how can I, after I issued the 'ftp://...' command, direct the focus to the 'main'-iframe in order to receive the output there?
B) NEW window
how can I force to open a brand new window to receive the file?
Or is there any other trick to achieve either one?
... I'm pretty sure in the end is an easy thing ...?
Many thanks for your time and hints
ed
Application: two-frame window: name="content" src="c.aspx" and name="main" src="m.aspx"
In 'c.aspx' I issue:window.location.href = "ftp://..../SOS.doc" (or .xls, .pdf etc)
The 'ftp' in turn correctly gives me the 'File Download' prompt to either 'open' or 'save' the downloaded file.
All is ok when I opt to 'save'. When I opt to 'open' the file shows up in the 'content'-iframe --> However, I'd rather have it in the 'main'-iframe or even better a NEW window alltogether.
A) 'main'-iframe:
how can I, after I issued the 'ftp://...' command, direct the focus to the 'main'-iframe in order to receive the output there?
B) NEW window
how can I force to open a brand new window to receive the file?
Or is there any other trick to achieve either one?
... I'm pretty sure in the end is an easy thing ...?
Many thanks for your time and hints
ed