Jump to content

Ajax request and my device response


Chikwado

Recommended Posts

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 by Chikwado
Link to comment
Share on other sites

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...