Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to set value to session in external js file

 
soni lal
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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.disableFilters();
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