wood burning stoves*
The moose likes HTML, CSS and JavaScript and the fly likes Problem..Sending Extra Parameter on Ajax Call Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Problem..Sending Extra Parameter on Ajax Call" Watch "Problem..Sending Extra Parameter on Ajax Call" New topic

Problem..Sending Extra Parameter on Ajax Call

Mark Reyes
Ranch Hand

Joined: Jul 09, 2007
Posts: 426
Hi All,

Good Day!
I wanted to add an extra parameter in all my ajax call. I saw the method, $.ajaxSetup but cant seem to make it work.
I basically have this, what I want is to send additional data on all subsequent ajax call

I have my spring controller like below. Its an interceptor that distinguishes Ajax and Non-Ajax Call.

I am not sure, but why is that, it is not sending the extra parameter. Anything wrong in my understanding?

Sean Clark ---> I love this place!!!
Me ------> I definitely love this place!!!
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60785

The default values will only be used in the absence of another value, not merged into it.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
It is sorta covered in the JavaRanch Style Guide.
subject: Problem..Sending Extra Parameter on Ajax Call
Similar Threads
Session Timeout on Ajax Calls
Struts 2: how to set response for ajax function call?
jQuery Ajax Request
help me.. problem with using android app, jquerymobile and html
Ajax Request Hangs