Send Data

[Total: 1    Average: 5/5]

Sending Data to the Server

Using AJAX, sometimes you need to send data to the server.

This bit of code will retrieve data from a server (like the Get Data example) but it will also send data to the server.

Notice the "ajax_file.php?value="+_data above

When this function is called, a parameter that is passed to it will be sent to the server as a GET or URL-REWRITING method. The variable posted is value1 with the value of the parameter. This is exactly the same as:

The same except the whole page is not submitted…

Times Viewed: 23

Leave a Reply

Your email address will not be published. Required fields are marked *