This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Create an object on the fly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Create an object on the fly" Watch "Create an object on the fly" New topic
Author

Create an object on the fly

samuel marin
Greenhorn

Joined: Nov 18, 2011
Posts: 16
I have a select with a OnChange Function. I would like to know how to create a different object depending on the selection on the Select.

Example:

MySelect have Option 1 and Option 2, so



I'm using the object under <body> and it's working, but when I'm trying to use it under a <script> does not work.

This is the object I'm trying to create: (It is a map) so what I'm trying is to change the values or map depending on the selection of the Select.




Thank you very much
 
wood burning stoves
 
subject: Create an object on the fly
 
Similar Threads
embedding flash in strust JSP generated html
problems playing swf file
Help with flash header
Flash program not loading when using struts
Displaying .swf in http and https