Are you using ND Applets? (CSpJavaApplet)?
If not, I guess you are forgetting about the two different worlds you are
dealing with - the browser/client world and the Server world which are
linked only thru http requests thru the web server. Often the two worlds sit
together on our desktop during development, but don't be mislead by that.
If you want to achieve this kind functionality, the options are Applets(a
lot more work) or Javascript(nasty).
Regards,
Aby
TeamND
> -----Original Message-----
> From: Jan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 10, 2000 9:21 AM
> To: [EMAIL PROTECTED]
> Subject: [ND] Problem adding an event to a CSpListBox
>
>
>
> I need to add an event to the listbox so I know when the user
> selected an item.
>
> I created a class called listBoxListener
>
> class listBoxListener extends MouseAdapter
> {
> public void mouseClicked(MouseEvent event)
> {
> // do something
> }
> }
>
> //[[SPIDER_EVENT<this_onBeforeDisplayEvent>
> public int this_onBeforeDisplayEvent(CSpDisplayEvent event)
> {
> CSpListBox listCategory = (CSpListBox)
> getDisplayField("lbCategory");
> listCategory.addMouseListener(new listBoxListener);
> return (PROCEED);
> }
> //]]SPIDER_EVENT<this_onBeforeDisplayEvent>
>
> The programs compiles and runs but the mouseClicked event is
> never executed.
> Any help you can give me will be appreciated
>
> Thanks
> Jan
>
>
> ______________________________________________________________
> ___________
> To unsubscribe from this mailing list please send an email to:
> [EMAIL PROTECTED]
> Please remember to use the same email address you subscribed with.
>
> For help in using, subscribing, and unsubscribing to the discussion
> forums, please go to:
> http://www.netdynamics.com/support/visitdevfor.> html
>
> For dire
> need help, email: [EMAIL PROTECTED]
>
_________________________________________________________________________
To unsubscribe from this mailing list please send an email to:
[EMAIL PROTECTED]
Please remember to use the same email address you subscribed with.
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]