From sriramkrish85 at gmail.com Sun Oct 5 03:17:46 2008 From: sriramkrish85 at gmail.com (Sriram) Date: Sun, 5 Oct 2008 03:17:46 -0700 Subject: [Jslib] Javascript file IO for addon development - Help needed Message-ID: HI, I am trying to create a new firefox addon ... this needs FILE IO. I have been browsing about the libraries that perform FILE IO and I came across these from the mozdev and I am not sure which one of these to use rdf.js RDF file manipulation dir.js Directory manipulation file.js File manipulation (per instance) fileUtils.js Collection of useful file utilities. dirUtils.js Collection of useful directory utilities. chromeFile.js Chrome File manipulation (per instance) Please help me in choosing the right option for performing FILE IO (for addon) Thanks Sriram -------------- next part -------------- An HTML attachment was scrubbed... URL: From pete at mozdevgroup.com Mon Oct 6 06:34:39 2008 From: pete at mozdevgroup.com (Pete Collins) Date: Mon, 06 Oct 2008 07:34:39 -0600 Subject: [Jslib] Javascript file IO for addon development - Help needed In-Reply-To: References: Message-ID: <48EA13EF.9030609@mozdevgroup.com> Sriram wrote: > HI, > > I am trying to create a new firefox addon ... this needs FILE IO. You probably want this library: http://jslib.mozdev.org/libraries/io/file.js.html --pete -- Pete Collins - Founder, Mozdev Group Inc. www.mozdevgroup.com Mozilla Software Development Solutions tel: 1-719-302-5811 fax: 1-719-302-5813 From ashu_impinge at yahoo.co.in Fri Oct 17 06:03:45 2008 From: ashu_impinge at yahoo.co.in (Ashu Shukla) Date: Fri, 17 Oct 2008 18:33:45 +0530 (IST) Subject: [Jslib] Urgent: Files downloads through javascript Message-ID: <729760.3247.qm@web94304.mail.in2.yahoo.com> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From rajeev.sebastian at gmail.com Fri Oct 17 09:17:48 2008 From: rajeev.sebastian at gmail.com (Rajeev J Sebastian) Date: Fri, 17 Oct 2008 21:47:48 +0530 Subject: [Jslib] Urgent: Files downloads through javascript In-Reply-To: <729760.3247.qm@web94304.mail.in2.yahoo.com> References: <729760.3247.qm@web94304.mail.in2.yahoo.com> Message-ID: <79a035420810170917q657c994fy6d13492192ae24fa@mail.gmail.com> On Fri, Oct 17, 2008 at 6:33 PM, Ashu Shukla 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 From bmorency at newtraxtech.com Fri Oct 17 10:44:50 2008 From: bmorency at newtraxtech.com (Bruno Morency) Date: Fri, 17 Oct 2008 13:44:50 -0400 Subject: [Jslib] Urgent: Files downloads through javascript In-Reply-To: <729760.3247.qm@web94304.mail.in2.yahoo.com> References: <729760.3247.qm@web94304.mail.in2.yahoo.com> Message-ID: <5c97b70b0810171044j2366e364qcd5d0449d185d6fb@mail.gmail.com> Ashu, You can have a look at this http://developer.mozilla.org/en/Download_Manager_improvements_in_Firefox_3or this http://www.xulplanet.com/references/xpcomref/ifaces/nsIIncrementalDownload.html . Bruno On Fri, Oct 17, 2008 at 9:03 AM, Ashu Shukla 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 at mozdev.org > https://www.mozdev.org/mailman/listinfo/jslib > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ashu_impinge at yahoo.co.in Fri Oct 17 05:30:28 2008 From: ashu_impinge at yahoo.co.in (Ashu Shukla) Date: Fri, 17 Oct 2008 18:00:28 +0530 (IST) Subject: [Jslib] Urgent: Files downloads through javascript Message-ID: <27123.96752.qm@web94303.mail.in2.yahoo.com> 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). 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From pete at mozdevgroup.com Fri Oct 17 11:22:40 2008 From: pete at mozdevgroup.com (Pete Collins) Date: Fri, 17 Oct 2008 12:22:40 -0600 Subject: [Jslib] Urgent: Files downloads through javascript In-Reply-To: <5c97b70b0810171044j2366e364qcd5d0449d185d6fb@mail.gmail.com> References: <729760.3247.qm@web94304.mail.in2.yahoo.com> <5c97b70b0810171044j2366e364qcd5d0449d185d6fb@mail.gmail.com> Message-ID: <48F8D7F0.8010406@mozdevgroup.com> 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