Re: call javascript on MenuItem?

Matt Raible <[email protected]>
Newsgroups gmane.comp.java.struts-menu.user
Message-ID <[email protected]>
The example application has an onclick example:

        <Item name="Press" title="Press" location="?Press"
            onclick="alert('This item has an onclick handler in
menu-config.xml.')"/>

It looks like you're using Struts Layout - not Struts-Menu directory,
so it might be out of date.

Matt

On 11/28/05, Gaet <[email protected]> wrote:
> Hi Matt,
>
> Thanks for the reply, I don't understand why you says: "Hopefully the
> displayer you're using supports it."???
> I think than attributes supported depends on the TLD definition not on the
> displayer..so
>
> When I try to force the use of the attribute "onclick", it raise an errro
> like it is not defined in the corresponding TLD.
>
> The tag I use is :
> <layout:menuItem>
>
> Maybe "onclick" has been added recently and I'm not up to date?
>
> Thanks for your help!
>
>
> ----- Original Message -----
> From: Matt Raible
> To: struts-menu-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> Sent: Monday, November 28, 2005 9:29 AM
> Subject: Re: [struts-menu] call javascript on MenuItem?
>
>
> Yes, it should be.  Just use the "onclick" attribute.  Hopefully the
> displayer you're using supports it.  If not, it should be too hard to
> add it.
>
> Matt
>
> On 11/28/05, Gaet <[email protected]> wrote:
> >
> > Hi Guys,
> >
> > I would like to call a javascript function when the user click on a
> > menuItem....is it possible?
> >
> > Thanks
> >
> >
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick
> _______________________________________________
> struts-menu-user mailing list
> struts-menu-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/struts-menu-user
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> struts-menu-user mailing list
> struts-menu-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/struts-menu-user
>


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.