Showing posts with label Menu items. Show all posts
Showing posts with label Menu items. Show all posts

Friday, February 19, 2010

GoMenuItem with target="_Blank" in Menu workaround

In a go menu item inside first Level of menu when we select goMenuItem 1 then new window opens behind my window (internet explorer 7,) works correctly in mozilla

We found a workaround for this case as follows.

We add client Listener in go menu item to execute a java script method
that remove the focus from the current window.



function focusoff(event)
{
blur(event.source);
}

This way the new window opens above the current window.

Test Case :
http://adfbugs.googlecode.com/files/TestGoMenuItemWA.zip

Wednesday, December 16, 2009

GoMenuItem and GoLink with target="_Blank" don't work correctly inside a Menu

We have strange behavior with GoMenuItem and GoLink components inside menu items

To reproduce the problem i created the following simple test case:
Created a menu with 2 levels and gomenuItems and MenuLinks that all open 'otn' in new '_blank' window.


The menu is the following:


1. In the menu above if i select goMenuItem 1 then new window opens behind my window (internet explorer 7,) works correctly in mozilla. goMenuItem 2 works correctly in ie7 also.

Funny thing is that if in ie7 you have a second tab opened then it works correctly.

2. goLink 1 works correctly, goLink 2 does nothing.

Is this a bug? any workaround?

test case:
http://adfbugs.googlecode.com/files/TestGoMenuItem.zip