Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem..Sending Extra Parameter on Ajax Call  RSS feed

 
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
Posts: 65826
134
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!