aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes How to set value to session in external js file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to set value to session in external js file" Watch "How to set value to session in external js file" New topic
Author

How to set value to session in external js file

soni lal
Greenhorn

Joined: Jan 31, 2011
Posts: 26
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!!

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to set value to session in external js file
 
Similar Threads
[jQuery] Calling event code programmatically
how to take javascript array values in php form
How do I get an event fired through javascript?
Iterating a JSON in jQuery
Select problem