You need to use an eventlistener.  If your list is called list1 do
something like this in onLoad.

var l = new EventListener(list1)
l.onselect = function(e) {
   var o = e.getTarget()
   var item = o.getSelectedItem();
   // do something like
   location.href = i.getValue();
}
list1.addEventListener(l);

-- 
Robert Rainwater


On 3/28/2001, 3:00:54 PM EST, Steve wrote about "[Dynapi-Help] ScrollList for DynAPI 
2":

> Thanks for the inro Richard.  I got the script working and populated with dynamic 
>data from our oracle server.  Cool stuff.

> Stupid question, but in DynAPI 1, you had an OnSelect event, which was called after 
>an item was selected.  I'm not seeing anything similar in the list.js file.  How 
>would I go about doing this? 


> ---------------------------------------------------
> Steve Springett
> Manager, Web Development
> NetLojix Communications, Inc.
> NASDAQ:  NETX

> w: http://www.netlojix.com/
> p: 847.439.9880
> f: 847.593.1746
> ---------------------------------------------------

>>>> [EMAIL PROTECTED] 03/28/01 12:44PM >>>
> There's an example here:
> http://www.resass.f2s.com/dynapi/Richard_Examples/List_In_Scrollpane.html 
> Note some syntax changes over different DynAPI2 versions.
> The list widget is not especially efficient, don't include to many options.
> More examples on my site of course.

> Cheers,
> Richard Bennett

> [EMAIL PROTECTED] 
> www.richardinfo.com 
> (Everything running on, and ported to the 19/12/2000 snapshot of DynAPI2)
> visit the DynAPI homepage (and FAQ) ::
> http://dynapi.sourceforge.net/dynapi/index.php?menu=1 
> Browse (and search) the mailinglist here:
> http://www.mail-archive.com/index.php3?hunt=dynapi 

> ----- Original Message -----
> From: "Steve Springett" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, March 28, 2001 6:21 PM
> Subject: [Dynapi-Help] ScrollList for DynAPI 2


>> I'm new to DynAPI, and loved the ScrollList example by Dan Steinman.
> Unforntuantly this example uses DynAPI 1, not 2, and does not work with
> IE5.5.
>>
>> Does anyone have a working example of ScrollList for DynAPI 2?
>>
>> The original can be found at:
>> http://www.dansteinman.com/dynduo/en/scrolllist.html 
>>
>>
>> ---------------------------------------------------
>> Steve Springett
>> Manager, Web Development
>> NetLojix Communications, Inc.
>> NASDAQ:  NETX
>>
>> w: http://www.netlojix.com/ 
>> p: 847.439.9880
>> f: 847.593.1746
>> ---------------------------------------------------
>>
>>
>> _______________________________________________
>> Dynapi-Help mailing list
>> [EMAIL PROTECTED] 
>> http://lists.sourceforge.net/lists/listinfo/dynapi-help 
>>


> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED] 
> http://lists.sourceforge.net/lists/listinfo/dynapi-help


> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help



_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to