Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

To see the content POST data trasferred by jQuery

How can you see what the attribute rel contains when it is transferred by POST?

I transfer a variable by the rel attribute by jQuery. I would like to know what the attribute, $_POST['answer'], contains.

This question is based on: To make an action based on the link location by jQuery

jQuery IRC tells me that the solution seems to be Firebug somehow. How can you see POST data in Firebug?

like image 864
Léo Léopold Hertz 준영 Avatar asked Aug 29 '09 07:08

Léo Léopold Hertz 준영


People also ask

How use jQuery post data?

The jQuery post() method sends asynchronous http POST request to the server to submit the data to the server and get the response. Syntax: $. post(url,[data],[callback],[type]);

What is formData () in jQuery?

The “formData” is a constructor to create an object. The object helps to work form Data methods such as append, delete, get, etc. methods syntax is below. var variable_name = new formData(); variable_name.

What is ajax post in jQuery?

Sends an asynchronous http POST request to load data from the server. Its general form is: jQuery. post( url [, data ] [, success ] [, dataType ] ) url : is the only mandatory parameter.

What does jQuery post do?

jQuery post() Method post() method loads data from the server using a HTTP POST request.


1 Answers

You can use the Network tab and look at the params tab as shown below (this was a get request to google where I search for the word hello).

alt text
(source: gyazo.com)

like image 80
redsquare Avatar answered Sep 18 '22 12:09

redsquare