0

Possible Duplicate:
Detect Ajax calling URL

is it possible to understand if a request is sent using ajax(xhr) from a server side language like php? I should know if the request is sent from a "normal page" or from an ajax call... is it possible without passing arguments(querysring) to the .php page?

Community
  • 1
  • 1
Dail
  • 4,622
  • 16
  • 74
  • 109

1 Answers1

0

By setting setRequestHeader method so the server will know that the data youre sending and you could set content type in that.

david
  • 4,218
  • 3
  • 23
  • 25