wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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
Author

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
Marshal

Joined: Jan 10, 2002
Posts: 60752
    
  65

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
jQuery Ajax Request
Struts 2: how to set response for ajax function call?
help me.. problem with using android app, jquerymobile and html
Ajax Request Hangs