Urgent: Files downloads through javascript

View: New views
4 Messages — Rating Filter:   Alert me  

Urgent: Files downloads through javascript

by Ashu Shukla :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

      I am working on Mozilla (Firefox) browser based application (DMP: Digital Media Player  related) AsomaTV .So, I want to create a JavaScript file which download the files (flash,image,video) from different server and save in local directory using HTTP request (Like: http://www.adfuera.com/folder_name/imagefile_name.jpg).

I already used XmlHttpRequest object but nothing happen.

So, Please provide me some specific code part related to this functionality. I will be very grateful you.


Thanks and Regards,

Ashu
(Software Engineer)

Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php
_______________________________________________
Jslib mailing list
Jslib@...
https://www.mozdev.org/mailman/listinfo/jslib

Re: Urgent: Files downloads through javascript

by Rajeev J Sebastian-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Oct 17, 2008 at 6:33 PM, Ashu Shukla <ashu_impinge@...> wrote:

> Hi,
>
>       I am working on Mozilla (Firefox) browser based application (DMP:
> Digital Media Player  related) AsomaTV .So, I want to create a JavaScript
> file which download the files (flash,image,video) from different server and
> save in local directory using HTTP request (Like:
> http://www.adfuera.com/folder_name/imagefile_name.jpg).
>
> I already used XmlHttpRequest object but nothing happen.
>
> So, Please provide me some specific code part related to this functionality.
> I will be very grateful you.

I dont think anyone's going to write code for you. You might be better
off reading the docs and jslib source code and figure out how to
achieve this. I dont think its particularly difficult to do it.

Regards
Rajeev J Sebastian
_______________________________________________
Jslib mailing list
Jslib@...
https://www.mozdev.org/mailman/listinfo/jslib

Re: Urgent: Files downloads through javascript

by Bruno Morency :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ashu,

You can have a look at this http://developer.mozilla.org/en/Download_Manager_improvements_in_Firefox_3 or this http://www.xulplanet.com/references/xpcomref/ifaces/nsIIncrementalDownload.html.

Bruno

On Fri, Oct 17, 2008 at 9:03 AM, Ashu Shukla <ashu_impinge@...> wrote:
Hi,

      I am working on Mozilla (Firefox) browser based application (DMP: Digital Media Player  related) AsomaTV .So, I want to create a JavaScript file which download the files (flash,image,video) from different server and save in local directory using HTTP request (Like: http://www.adfuera.com/folder_name/imagefile_name.jpg).

I already used XmlHttpRequest object but nothing happen.

So, Please provide me some specific code part related to this functionality. I will be very grateful you.


Thanks and Regards,

Ashu
(Software Engineer)

Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php
_______________________________________________
Jslib mailing list
Jslib@...
https://www.mozdev.org/mailman/listinfo/jslib



_______________________________________________
Jslib mailing list
Jslib@...
https://www.mozdev.org/mailman/listinfo/jslib

Re: Urgent: Files downloads through javascript

by Pete Collins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Also, if jsLib doesn't provide exactly what you are looking for you can
use nsIWebBrowserPersist -> saveURI.

Take a look here for some examples..

  http://mxr.mozilla.org/mozilla-central/search?string=saveURI

--pete

--
Pete Collins - Founder, Mozdev Group Inc.
www.mozdevgroup.com
Mozilla Software Development Solutions
tel: 1-719-302-5811
fax: 1-719-302-5813

_______________________________________________
Jslib mailing list
Jslib@...
https://www.mozdev.org/mailman/listinfo/jslib