Chikwado Posted January 25, 2016 Share Posted January 25, 2016 (edited) Can some one tell me why i am passing ajax file in my mobile device. When I processed ajax file it open successfully, if I hit the trigerable button, Ajax response by printing text file in div. No server were involved in my mobile device. Can you tell me why my device is responding for ajax request? Edited January 25, 2016 by Chikwado Link to comment Share on other sites More sharing options...
thescientist Posted January 25, 2016 Share Posted January 25, 2016 definitely need to see some code for this, and ideally screenshots of your network tabs showing these requests, because I'm not sure what you are trying to say. Are you saying your project reads a txt file from the server via AJAX and outputs the response into a <div> but that's not working on mobile? Link to comment Share on other sites More sharing options...
Chikwado Posted January 25, 2016 Author Share Posted January 25, 2016 The following code is working in my mobile device which has model name as ( nokia x2-01) there is no server in my device but ajax works, can you tell me why? Link to comment Share on other sites More sharing options...
dsonesuk Posted January 25, 2016 Share Posted January 25, 2016 ??? The server is what your website is on, your device browser goes to your website server process the ajax request, returns result as html and this is what is shown on your device browser.. Link to comment Share on other sites More sharing options...
thescientist Posted January 25, 2016 Share Posted January 25, 2016 JavaScript (including AJAX) runs in the browser. The browser is responsible for supporting the language spec and features. The server is what hosts the static assets (HTML / CSS / JS) and returns them in response to a request from the browser. The browser, after getting JavaScript returned, will execute it, just like it will render HTML / CSS. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now