Robert Nyman made an example of this in the Firefox OS Boiler Plate app: https://github.com/robnyman/Firefox-OS-Boilerplate-App/blob/gh-pages/js/webapp.js#l453
For a system xhr you will also need the app to be privileged: https://developer.mozilla.org/en-US/Apps/Build/Manifest#type ----- Original Message ----- From: "Nilay Binjola" <[email protected]> To: "Santosh Shingare" <[email protected]> Cc: [email protected] Sent: Monday, May 19, 2014 6:57:58 AM Subject: Re: [b2g] Responses not getting in Firefox OS app Hi! This does not seem like a flow problem. Although I did go through your flow diagram and things seem fine. One thing I forgot to mention in the previous email was that while creating the XMLHTTPRequest object, you need to pass in an object with a property mozSystem set to true . So, it becomes something like this:- var ajaxRequestObject = new XMLHttpRequest({ mozSystem: true }); Hope that helps. On Mon, May 19, 2014 at 7:12 PM, Santosh Shingare < [email protected] > wrote: On Monday, May 19, 2014 4:55:17 AM UTC-7, Santosh Shingare wrote: > Dear all, > > > > I am trying to getting responses from server using ajax. it executing well in > browser, but not for app. can any one help me. > > > > Thank you Hello Nilay, I tried but noe working for me. please open following link and check flow of my digram where i am going wrong? Can you tell me please. https://drive.google.com/file/d/0B15-DuW8Inh3Z2EyMWh1RzVQVnc/edit?usp=sharing Thank you _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g -- Nilay Binjola _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
