Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Droplist calling scriptlet/beans

Reply
Thread Tools

Droplist calling scriptlet/beans

 
 
unlikeablePorpoise@gmail.com
Guest
Posts: n/a
 
      03-19-2007
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

 
Reply With Quote
 
 
 
 
Wojtek
Guest
Posts: n/a
 
      03-20-2007
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.

--
Wojtek


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Droplist calling scriptlet/beans unlikeablePorpoise@gmail.com Javascript 7 03-22-2007 05:42 PM
set selected value on a droplist TJS ASP .Net 2 03-10-2005 06:54 AM
reset selected index on droplist TJS ASP .Net 4 03-07-2005 04:38 AM
Filelist -> Droplist? Lasse Edsvik ASP .Net 1 10-04-2004 08:41 AM
Newbie Question about DropList and Page Load Meir Rotfleisch ASP .Net 2 11-02-2003 04:03 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57