I am trying to upload a file from FTP using javascript, for which I created the following section:
Can I upload a file from FTP using Javascript?
From there I learned that I can use window.open('ftp://xyz.org/file.zip'); to download the file. It opens a new browser window, but the window closes immediately.
How can I make him stay open?
Actually, I do all this in a Silverlight application:
Here is the code:
HtmlPage.Window.Eval("window.open('" + url+ "', 'Download', 'height=500,width=800,top=10,left=10');");
I also tried this,
string targetFeatures = "height=500,width=800,top=10,left=10"; HtmlPage.Window.Navigate(new Uri(url), "_blank", targetFeatures);
But both results coincide: he opens a window and closes it immediately. I see it only for a split second!
javascript c # silverlight
Nawaz
source share