Re: [AngularJS] Re: read a local file in angular js

2015-09-12 Thread Jayashree M A
Hi, As I am quite new to angular js I have not understood the code sent by bao dinh. Could someone spoon feed me and give me the model, view and controller code from scratch for searching for a string in a file and displaying it's contents Thanks On Fri, Sep 11, 2015 at 9:25 PM, Thế Bảo Đinh w

Re: [AngularJS] Re: read a local file in angular js

2015-09-11 Thread Alain Ekambi
If u are willing to use a bit of flash then it s possible to read local files. Does not html5 file reader do that to ? On 12 Sep 2015 04:36, "Sander Elias" wrote: > hi Jayashree, > > You can't read local files with $http. Only remote is possible (you can > make local files remote, by starting a h

Re: [AngularJS] Re: read a local file in angular js

2015-09-11 Thread Sander Elias
hi Jayashree, You can't read local files with $http. Only remote is possible (you can make local files remote, by starting a http-server ) If you are developing an desktop(like) app have a look at nw . If you google around a bit, you

Re: [AngularJS] Re: read a local file in angular js

2015-09-11 Thread Erick Engelhardt
You should seek some integration with Java applets, activex... Em 11/09/2015 12:06, "Sander Elias" escreveu: > Hi, > > What do you need, you want your use to be able to drop an file into your > app or what? > Reading the local file system from within the browser is impossible. > (well, for a web-

Re: [AngularJS] Re: read a local file in angular js

2015-09-11 Thread Thế Bảo Đinh
Yes, you can use it . It is the code i used: obj.getCustomers = function(){ return $http.get("data/data.xml"); } services.getCustomers().then(function(data){ var source = x2js.xml_str2json(data.data); angular.forEach(cartItems,function(value,key){ var item = ($filter('filter')(sour

Re: [AngularJS] Re: read a local file in angular js

2015-09-11 Thread Jayashree M A
Hi. Actually the file can be local or remote. Can i use the $http service to read the file contents and then display the filtered contents? I don't need to do drag and drop Thanks in advance On Fri, Sep 11, 2015 at 8:36 PM, Sander Elias wrote: > Hi, > > What do you need, you want your use to

[AngularJS] Re: read a local file in angular js

2015-09-11 Thread Sander Elias
Hi, What do you need, you want your use to be able to drop an file into your app or what? Reading the local file system from within the browser is impossible. (well, for a web-app it is) Regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS"