Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem..Sending Extra Parameter on Ajax Call

 
Mark Reyes
Ranch Hand
Posts: 426
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64843
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The default values will only be used in the absence of another value, not merged into it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic