IE6 closes new browser window when I set iframe's source to a file download service - file

In our application, we have a download flow that works as follows:
On main application page has a link showing file name to download. Target of this link is _blank.
User clicks this link. We open a new window.
The new window shows a wait message, makes an ajax call first to verify the file details from server (we have server implementations for this).
There is a hidden iframe in new window. After verification of file details, I set the file download url as the source of iframe so download request is sent via iframe.
When file response is received, IE6 suddenly shows a yellow bar at the top and then closes this new window forcefully. I do not see any file save dialog.
This works fine in IE7 and IE8, although I see the yellow security bar here too but window does not close, so I can start a manual download.
Can anyone help me on this? Is this a bug in IE6 that was resolved in IE 7/8?
Best regards,
Nadeem

I got it. Actually this is a bug of IE6 and you could get more info about it here: http://support.microsoft.com/kb/896017.
Regards,
Nadeem Ullah

Related

Get destination of silverlight link

I visited a web page with an embedded silverlight.
If I press a specific button on that page, I will get a download window in Firefox. So I think this is just a link. Can you tell me how I can get the HTTP address of the link?
I want to create an http link to the same destination but for this, I need the destination..
Best,
dwi
I got it. Just download in Firefox and go to download history.
There you can right click and select "Copy download link".

Web browser connection in codename one

when url like youtube.com or others are set, it opens in webBrowser but when pdf link is kept nothing happens, why is that??
WebBrowser pdfview = new WebBrowser();
pdfview.setURL("http://www.codenameone.com/files/developer-guide.pdf");
//this link downloads the pdf file in browser but does nothing in codename one browser...
f.addComponent(pdfview);
i jst want to view this pdf from the browser
Opening a PDF in the browser component will only work on devices and won't work in the simulator.

Wijmo and Dotnetnuke 7. Has anyone tried it? Not working

Has anyone tried using the wijmo widgets in DNN 7.+ ?
For my example I'm trying to use the upload widget.
If I upload to a path on my server and test, it works (As in the dialog appears to choose a file... the popup)
If I load it within a page on the site, the button shows but nothing happens when clicked.
All script files and necessary markup are correct.
No console erros, nothing. Very confusing.
Wijmo widgets work in DNN 7.+.
The “action” option should be changed to the server’s address of upload.ashx file.
Note: the upload sample can’t be opened by file path(d:/……/upload.html), please make sure it is opened on server.
Thanks,
Richa

Getting IE Browser to open the File

I embed the default Internet Explorer in my win32-C Application via COM/OLE.
I display a web page having a link (anchor tag) to save/open a file.
When i click on the link, It does some processing in the background but does not give me a dialog box asking to save or open the file. From Fiddler I come to know that it is writing to the cache but not able to access it or show any popup.
I expect to see the dialog box asking me to either save or open the file (default)
If i do this from the IE browser then everything works fine.
EDIT : I tried a sample code in which I do get to see the Dialog Box providing me with the option of saving, opening the file although tallied everything with my code I still fail to see the box.
I was thinking of the Modeless Dialog Box issue but I can see a Message Box in my code. So modeless dialog box is not disabled.
Not able to get how to get it to work.
(Note: Please see the attached images)
EDIT: I edited the The EmbedBrowser Function in my code, my browser was not given a pointer to my IOleClientSite object
New Code :- http://paste.ubuntu.com/1062010/
But problem persists!
I figured out the issue.
The interface DWebBrowserEvents2's invoke method was implemented to not display the File download Box while downloading.
Modified it to allow the same.

Open a file in the browser from Silverlight

I have a Button (or a hyperlinkbutton) in Silverlight. I want to open a file on a server share when this butto in clicked. With other words I want a new Browser Tab or Window to open showing the requested file, just like I enter the URL in the browsers addressbar:
file://C:\myfile.txt
I tried in the OnClick Method the following:
System.Windows.Browser.HtmlPage.Window.Navigate(new Uri(#"file://C:\myfile.txt"),"_blank");
it throws an Exception (Access denied).
When I do the same with an http: page it works:
System.Windows.Browser.HtmlPage.Window.Navigate(new Uri(#"http://www.somedomain.com"),"_blank");
How can I achive the same with a file. Security can not be an issue, I have full access to that file. And please don't tell me that this is not possible... would mean we have to go back to PHP.
Silverlight runs on the client side and in by default in LOW trusted mode which dont allow application to access local file system.
For the purpose, u can try giving full trust to the silverlight application.
Firefox does not allow external URLs to link to a local resource anymore :(

Resources