Forums

Home » Liferay Portal » English » 3. Development »

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Lionel Griache
[RESOLVED] Problem with liferay navigation menu over applet
July 22, 2009 8:10 AM
Answer

Lionel Griache

Rank: New Member

Posts: 16

Join Date: April 24, 2008

Recent Posts

Hi,
I have developed a portlet that includes displaying an applet (to display graphs).
If the user includes this portlet on his page, the applet then always show on top of the liferay menu, which makes it impossible for the user to navigate to other community pages (see attached file for a view of the problem).
The same thing happens if the user wants to change the layout template of the page that contains an applet.
Is there a known workaround for this problem? Is that something I need to take into consideration in the code of my applet?
Thanks for your help.
Attachment

Attachments: navigationbar.JPG (20.2k)
Eric Devlin
RE: Problem with liferay navigation menu over applet
April 24, 2008 7:41 AM
Answer

Eric Devlin

Rank: Regular Member

Posts: 154

Join Date: February 19, 2008

Recent Posts

I've have similar situation, but the menu is being obscured by flash.
Attachment

Attachments: obscured_menu.JPG (38.5k)
Wilson Man
RE: Problem with liferay navigation menu over applet
April 24, 2008 10:26 AM
Answer

Wilson Man

LIFERAY STAFF

Rank: Liferay Master

Posts: 532

Join Date: June 21, 2006

Recent Posts

front-end is not my expertise, so i'll try to find someone to address this issue you guys are seeing ...

one quick note though, can the z-index be modified for the dropdown menu so that it'll be on top of everything? this would be a change in the theme ... thoughts?
Nate Cavanaugh
RE: Problem with liferay navigation menu over applet
April 24, 2008 10:40 AM
Answer

Nate Cavanaugh

LIFERAY STAFF

Rank: Junior Member

Posts: 50

Join Date: November 27, 2006

Recent Posts

As far as Java applets go, it's a bit tough.

What you have to do is create a transparent iframe that covers the applet. Luckily there is a jQuery plugin that will do this for you. The plugin is called bgIframe, and it's available through here:
http://brandonaaron.net/jquery/plugins/bgiframe/docs/

How you would use it in Liferay is:
jQuery('.lfr-dock').bgiframe({height: 500});

And I think that will take care of it. It may need some tweaking though.


For Flash, however, the fix is quite easy. In your source where you embed flash, pass this parameter in with it:

wmode="transparent"

And that will make sure the dock sits on top of it.

Of course, let us know if that helps.

Thanks guys,
Lionel Griache
RE: Problem with liferay navigation menu over applet
April 24, 2008 10:45 AM
Answer

Lionel Griache

Rank: New Member

Posts: 16

Join Date: April 24, 2008

Recent Posts

Thanks. Will give it a try. Will let you know.
Eric Devlin
RE: Problem with liferay navigation menu over applet
April 24, 2008 12:30 PM
Answer

Eric Devlin

Rank: Regular Member

Posts: 154

Join Date: February 19, 2008

Recent Posts

wmode="transparent" is a winner! Thanks, that wasn't going to be my first place to dig into that problem.

Eric
Lionel Griache
RE: Problem with liferay navigation menu over applet
April 24, 2008 12:56 PM
Answer

Lionel Griache

Rank: New Member

Posts: 16

Join Date: April 24, 2008

Recent Posts

Unfortunately. Not the same story with the java applet.
Did a quick test with the test page of the jQuery plugin. If I include my applet in this page, it shows again on top of everything else.
One other way to reproduce the problem in Liferay is to have a webpage display a PDF document. The PDF document will also appear on top of the navigation menu. Pb is the same with Internet Explorer, Firefox... Will continue investigating and post any update I might have.
Thanks.
Attachment

Attachments: appletpb.JPG (43.3k)
Lionel Griache
RE: Problem with liferay navigation menu over applet
April 25, 2008 9:16 AM
Answer

Lionel Griache

Rank: New Member

Posts: 16

Join Date: April 24, 2008

Recent Posts

Seems like there is no way of making the applet not show on top of the menu layer.
My next option would be to customize the way the menu is displayed.
Any tip on where to start looking for this?
Luke McLean
RE: bgiframe usage
September 3, 2008 5:43 PM
Answer

Luke McLean

Rank: Junior Member

Posts: 46

Join Date: August 15, 2007

Recent Posts

Hi Nate,

I'm using 5.1.1

I have what is likely to be a common problem for losers like me who are on a corporate network that still uses IE6 as the standard browser.

When I view the 'Add Application' or 'Layout' dialogs and dropdown just get shown right through the guts of them and makes our theme look very 'buggy'. I have researched the solution to this problem and finally arrived here at this entry which appears to explain that if I use the jquery plugin 'bgiframe' I can resolve these problems.

My problem is that I don't have the necessary smarts to interpret your 'jQuery('.lfr-dock').bgiframe({height: 500});' to a working solution for both the Add Application ui-dialog and the Layout ui-dialog.

Would you please be able to give just a few little pointers (like where do I add this code, and what the correct code would be for fixing these two dialogs in IE6). That would be very helpful to others as well. Thanks.

PS. I searched this forum for 'bgiframe' and got no results. I searched Google for 'liferay bgiframe' and found it... weird.
Kenny Ritch
RE: bgiframe usage
September 15, 2008 6:04 PM
Answer

Kenny Ritch

Rank: New Member

Posts: 2

Join Date: March 16, 2008

Recent Posts

Hey all

I've got the same problem as Luke: stuck on IE6 and lacking the 'smarts' to fix this. Can someone please explain the correct usage of jQuery('.lfr-dock').bgiframe({height: 500}). Where should it go and how should it be modified to stop the select boxes showing through my DIVs?

Thanks,
Kenny.
Eric Devlin
RE: bgiframe usage
September 16, 2008 10:46 AM
Answer

Eric Devlin

Rank: Regular Member

Posts: 154

Join Date: February 19, 2008

Recent Posts

I haven't actually made the move to version 5 yet, but it seems like this might work.

1 download the plugin from http://brandonaaron.net/jquery/plugins/bgiframe/docs/
2 modify portal-ext.properties javascript.files to include the new library
3 modify javascript/javascript.js --> jQuery(document).last( jQuery('.lfr-dock').bgiframe({height: 500}); );
4 rebuild as necessary
5 redeploy as necessary
6 restart as necessary

Hope it helps
Eric
Chris Whittle
RE: bgiframe usage
March 10, 2009 1:20 PM
Answer

Chris Whittle

Rank: Expert

Posts: 462

Join Date: September 17, 2008

Recent Posts

has anyone got this to work in 5.1.X? I can't seem to get it do anything different, no errors nothing....
Chris Whittle
RE: bgiframe usage
March 11, 2009 9:06 AM
Answer

Chris Whittle

Rank: Expert

Posts: 462

Join Date: September 17, 2008

Recent Posts

nevermind I got it... for prosperity
https://www.liferay.com/web/guest/community/forums/-/message_boards/message/2454391
Lionel Griache
RE: bgiframe usage
July 22, 2009 8:12 AM
Answer

Lionel Griache

Rank: New Member

Posts: 16

Join Date: April 24, 2008

Recent Posts

To close the problem that initiated this post, I finally decided to bann applets and replace them with Flash.
Works much better.
Chris Whittle
RE: bgiframe usage
July 22, 2009 8:15 AM
Answer

Chris Whittle

Rank: Expert

Posts: 462

Join Date: September 17, 2008

Recent Posts

we actually had to dial back our use of bgiframe due to the overhead it was adding to the browser and response times...