Using target="_blank" in menu-config.xml doesn't seem to work, but
adding target="_blank" in the displayMenuTag did.  This seems to be the
case with both StrutsMenu 1.2 and 1.3.

When specifying target="_blank" in menu-config.xml the generated
javascript did not pass the target to makeMenu().  When specified in the
call to the tag, the target was passed in.

Thanks.

On Tue, 2003-09-30 at 09:22, Scott Sayles wrote:
> That (window.open()) is probably breaking the coolmenus javascript.  The
> target attribute should be supported.  You should verify that the target
> is being specified in the generated javascript.  I believe it should be
> the 4th argument to the oCMenu.makeMenu() call.
> 
> BTW, it's possible to override the target attribute (defined in the xml
> config file) in the displayMenuTag.
> 
> Scott
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED] On 
> > Behalf Of Nate Drake
> > Sent: Tuesday, September 30, 2003 9:05 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [struts-menu] Open menu location in a new window
> > 
> > 
> > Do you mean like this:
> > 
> > <Item   name="HelpContents"   title="ui.menu.help.contents" 
> >         location="help/index.htm" target="_blank"/>
> > 
> > Or do you mean add target="_blank" to the window.open() call?
> > 
> > 
> > I tried adding a target attribute to the <Item> element and 
> > it doesn't open in a new window.  Whenever I try to put something like
> > javascript:window.open() into the location attribute, the 
> > whole menu doesn't get displayed.
> > 
> > I am using CoolMenu, in case that makes any difference.
> > 
> > Thanks.
> > 
> > Nate
> > 
> > 
> > On Mon, 2003-09-29 at 16:37, Matt Raible wrote:
> > > Try target="_blank"
> > > 
> > > On Monday, September 29, 2003, at 11:06 AM, Nate Drake wrote:
> > > 
> > > > Is it possible to specify that a menu item opens its 
> > location in a 
> > > > new browser window.
> > > >
> > > > I tried doing location="javascript:window.open()" but that didn't 
> > > > seem to work.
> > > >
> > > > Thanks,
> > > >
> > > > Nate
> > > >
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This sf.net email is sponsored by:ThinkGeek
> > > > Welcome to geek heaven.
> > > > http://thinkgeek.com/sf
> > > > _______________________________________________
> > > > struts-menu-user mailing list 
> > [EMAIL PROTECTED]
> > > > https://lists.sourceforge.net/lists/listinfo/struts-menu-user
> > > 
> > 
> > 
> > 
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > struts-menu-user mailing list [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/struts-menu-user
> > 
> 



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
struts-menu-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/struts-menu-user

Reply via email to