Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

Droplist calling scriptlet/beans

Thread view: 
unlikeablePorpoise@gmail.com - 20 Mar 2007 00:52 GMT
I would like to have an HTML dropdown list where each selection calls
a method. The following code doesn't work, but it I hope it gives the
idea of what I'm trying to do:

<FORM NAME="frm">
<SELECT NAME="sel"
onChange="document.frm.sel.options[document.frm.sel.selectedIndex].value">
<OPTION SELECTED value="">--choose--
<OPTION VALUE="<% package1.method1; %>">Call Method 1
<OPTION VALUE="<% package1.method2; %>">Call Method 2
<OPTION VALUE="<% package1.method3; %>">Call Method 3
</SELECT>
</FORM>

Basically I would like to use the JavaScript 'onChange' to invoke the
method I select from the list.

Any help would be appreciated. And if this is off-topic, let me
know :-)   ...

Thanks,
 Sarah
Wojtek - 20 Mar 2007 15:11 GMT
unlikeablePorpoise@gmail.com wrote :
> I would like to have an HTML dropdown list where each selection calls
> a method. The following code doesn't work, but it I hope it gives the
> idea of what I'm trying to do:
>
> onChange="document.frm.sel.options[document.frm.sel.selectedIndex].value">

> Basically I would like to use the JavaScript 'onChange' to invoke the
> method I select from the list.

You need to post tis in the JavaScript groups. This is the Java group.
Any Java objects would not be at all visible at the browser level.

Signature

Wojtek :-)



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.