Re: [Wicket-user] Pure JavaScript calls from Links

2007-02-24 Thread Will Morton
Thanks Erik, Igor! W On 23 Feb 2007, at 17:39, Erik van Oosten wrote: Sorry, it is more something like WebMarkupContainer, not WebMarkupComponent. Erik. Erik van Oosten wrote: Attach a simple WebMarkupComponent to your a. Then add a SimpleAttributeBehavior(onclick, foo();) to the

[Wicket-user] Pure JavaScript calls from Links

2007-02-23 Thread Will Morton
I am having some issues getting my Wicket application to work. Any assistance would be much appreciated. I have a bunch of pre-defined JavaScript functions that I am including in headers. There are some links on my site that, when clicked, should call one of these pre-defined JS functions.

Re: [Wicket-user] Pure JavaScript calls from Links

2007-02-23 Thread Igor Vaynberg
at the end of javascript you have to return false; this will prevent the href from executing -igor On 2/23/07, Will Morton [EMAIL PROTECTED] wrote: I am having some issues getting my Wicket application to work. Any assistance would be much appreciated. I have a bunch of pre-defined

Re: [Wicket-user] Pure JavaScript calls from Links

2007-02-23 Thread Erik van Oosten
Attach a simple WebMarkupComponent to your a. Then add a SimpleAttributeBehavior(onclick, foo();) to the component. Regards, Erik. Will Morton wrote: I am having some issues getting my Wicket application to work. Any assistance would be much appreciated. I have a bunch of pre-defined

Re: [Wicket-user] Pure JavaScript calls from Links

2007-02-23 Thread Erik van Oosten
Sorry, it is more something like WebMarkupContainer, not WebMarkupComponent. Erik. Erik van Oosten wrote: Attach a simple WebMarkupComponent to your a. Then add a SimpleAttributeBehavior(onclick, foo();) to the component. Regards, Erik. Will Morton wrote: I am having some