This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to set value to session in external js file  RSS feed

soni lal
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have a dropdown in my jsp. on change of this drop down a external javascript method is getting called.

I have to store the selectedindex of dropdown in session.

Please find the dropdown code in js below:
'archiveTypeFilter' : function(element){
element.onchange = function(){
var val = this.options[this.selectedIndex].value;
ACSearch.searchAJAX(val, '0', 'y', undefined, 'facet');
here archiveTypeFilter is the name of dropdown.

Please suggest me how to do that.

Please assist me.
Thanks in advance!!

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!