I am trying to download the file from FTP using Javascript for which I have created the following topic:
From there, I have learned that I use the
window.open ('ftp://xyz.org/file.zip') Can; Download the file This opens a new Browser , but the window immediately closes
How can I force it to open?
In fact, I am doing all this in the Silverlight application:
Here is the code:
HtmlPage.Window.Eval ("window. Open ('"+ Url +"', 'Downloads', 'height = 500, width = 800, top = 10, left = 10');); I also tried to do this,
string targetFeatures = "height = 500, width = 800, top = 10, left = 10"; HtmlPage.Window.Navigate (new URI (URL), "_blank", targetFeatures);
But both of the results: it opens a window, and closes it immediately I see it for the other part!
I know that this does not answer your question, and I 'm sure you Everyone knows I am giving more answers because I do not see this point often :)
There is very limited support in Silverlight for client interaction. Javascript is a shimm to do an overview in my opinion. Tries and bypasses things which are against the Silverlight Ushilp was. It would be very easy for Microsoft to add FTP support to the Silverlight, but it was excluded for some reason.
However, there is considerable support for web service interaction in seriallight, therefore the recommended way to get a file will be to call a webservice which will transfer the FTP to you and then send content to the Silverlight application via the webserver. Will give. Perhaps it is possible to process it on the webservice side for any commercial reasoning etc.
Like I said, I suspect you need not to use any webmaster (pass the bandwidth cost to the user the most) But it would be interesting to know more about your business problem in exchange for your technical problem.
Comments
Post a Comment