Yeasin Abedin
Yeasin Abedin

Reputation: 2453

Why URL Data does not shows for GET method in ajax?

As we know, GET method sends data via URL. We can use both GET and POST method in ajax. My question is, why can't we see the data in URL when we use ajax with a GET method?

Upvotes: 1

Views: 1422

Answers (2)

000
000

Reputation: 27247

When you fire off your ajax request like this:

enter image description here

The Chrome network tab will show new line for this transaction:

enter image description here

If you click on it, it will show you all the details:

enter image description here

If you'd like more information on constructing your own querystrings, look at this other question: How to build query string with Javascript

Upvotes: 1

Jasmin Mistry
Jasmin Mistry

Reputation: 1476

AJAX call is not visible through url.

Try to use firebug extension of firefox.

In firebug, you will find all request in console.

Upvotes: 3

Related Questions