Flicker with PDF in IFRAME

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
ssalter
Advanced
Advanced
Posts: 12
Joined: Fri Jun 25, 2004 10:01 pm

Flicker with PDF in IFRAME

Post by ssalter »

Greetings,

I have a site with an iframe located below the header which contains the Milonic menu. The menu loads content into the iframe, including PDF files. I chose Milonic because it had the capability to display on top of a PDF, quite a feat considering no other menus I've seen will do that!

However, when a PDF is loaded in the iframe and the user uses the menu, it flickers terribly. I am guessing that is because the menu is fighting with the PDF for top billing but is there a way to smooth this out at all?

initial menu definition:

Code: Select all

<script type=text/javascript>

_menuCloseDelay=50           // The time delay for menus to remain visible on mouse out
_menuOpenDelay=50            // The time delay before menus open on mouse over
_subOffsetTop=10            // Sub menu top offset
_subOffsetLeft=3            // Sub menu left offset
// top level menu style
with(mainmenu=new mm_style()){
onborder="1px inset #ccc";
offborder="1px outset #fff";
onbgcolor="#243E74";
oncolor="#ffffff";
offbgcolor="transparent";
offcolor="#fff";
padding=0;
fontsize="90%";
fontfamily="Verdana, Tahoma, Arial";
itemwidth="100";
itemheight="15";
align="center";
}
//submenus style
with(menuStyle=new mm_style()){
menuheight=10;
onbgcolor="#A9AFC4";
oncolor="#000000";
offbgcolor="#BBBFCB";
offcolor="#000000";
bordercolor="#296488";
borderstyle="solid";
borderwidth=0;
padding=5;
fontsize="94%";
fontstyle="bold";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="black";
pagebgcolor="#B2B7CB";
headercolor="#000000";
headerbgcolor="#ffffff";
subimage="arrow.gif";
subimagepadding="9";
overfilter="";
outfilter="";
//overfilter="Fade(duration=0.2);Alpha(opacity=98);Shadow(color='#777777', Direction=135, Strength=5)";
//outfilter="Fade(duration=0.3);";
overflow="scroll";
}


//----------------------------------TOP MENU DEFINITION
with(milonic=new menuname("Main Menu")){
style=mainmenu;
alwaysvisible=1;
orientation="horizontal";
top=4;
left=10;
aI("text=Home;target=ifr;url=http://bl-iuhc-netsrv/mainx.asp;");
aI("text=Phone List;target=ifr;url=http://bl-iuhc-netsrv/webtools/phonelist.asp;");
aI("text=ITS Help;target=ifr;url=http://bl-iuhc-netsrv/webtools/helpdesk/helpdesk.asp;");
aI("text=Calendars;showmenu=calendars;");
aI("text=Resources;showmenu=resources;");
}

//----------------------------------Calendars MAIN MENU
with(milonic=new menuname("calendars")){
style=menuStyle;
aI("text=Library;target=ifr;url=http://bl-iuhc-netsrv/notyetcal.htm;");
aI("text=Specialists;target=ifr;url=http://bl-iuhc-netsrv/notyetcal.htm;");
aI("text=GYN WIC;target=ifr;url=http://bl-iuhc-netsrv/notyetcal.htm;");
aI("text=Eye Clinic;target=ifr;url=http://bl-iuhc-netsrv/notyetcal.htm;");
aI("text=Walk-In Clinic;target=ifr;url=http://bl-iuhc-netsrv/notyetcal.htm;");
}
....
The menu is not inside a <div>, it is included just after the <body> tag.

The flickering is apparent mainly when you mouseover a submenu, running your mouse up and down the displayed submenu.

Oh, one last note. The flickering only starts after a PDF has been loaded. It continues even though an html page may be loaded into the Iframe. However, if you Refresh the page, the flicker goes away again until another PDF is loaded.
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi,

Do you have a URL that we can see?

I know we can probably set up a demo ourselves but this will take time. Unfortunately, time is at a premium at the moment so any help you can provide will certainly speed things up.

Cheers
Andy
ssalter
Advanced
Advanced
Posts: 12
Joined: Fri Jun 25, 2004 10:01 pm

Post by ssalter »

Hi Andy,

Unfortunately this is an intranet site behind a firewall. hmm...if I can find time today, I'll try to copy the relevant parts of the site to my public site. I'll post back here when I get it done.

Thanks.
Steve


Andy wrote:Hi,

Do you have a URL that we can see?

I know we can probably set up a demo ourselves but this will take time. Unfortunately, time is at a premium at the moment so any help you can provide will certainly speed things up.

Cheers
Andy
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

OK, no probs, let me know when you've posted something up and we'll take a peek.

-- Andy
ssalter
Advanced
Advanced
Posts: 12
Joined: Fri Jun 25, 2004 10:01 pm

Post by ssalter »

http://www.saltcom.net/test/default.htm is the test site.

It doesn't flicker as badly as it does with "real" pdf files but you still see it at the top.

Click "Load PDF" to load the test pdf and scroll around through the submenus. Then, load the default test page again by clicking the "Home" button and you still see the flickering.

I imagine the flickering is due to the menu trying to stay on top of the PDF but even after the PDF is gone, it still is in "keep on top" mode.
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hmmm, Looks like the problem might be related to the IE's transitions and effects,

Have you tried removing the outfilter and overfilter and see if it helps?

Let me know what you find after you've tried it. We are working on building our own effects that might help for the future.

-- Andy
ssalter
Advanced
Advanced
Posts: 12
Joined: Fri Jun 25, 2004 10:01 pm

Post by ssalter »

Whoops, didn't send up the version of the menu without the ie effects. I chopped those out of menu_data2.js and the flickering looks worse, if that makes any sense. That was the first thing I tried when I Was trying to fix this...don't need the ie effects.

I changed the test bed at saltcom.net to include the right menu file that does not have the effects.

Andy wrote:Hmmm, Looks like the problem might be related to the IE's transitions and effects,

Have you tried removing the outfilter and overfilter and see if it helps?

Let me know what you find after you've tried it. We are working on building our own effects that might help for the future.

-- Andy
guim7
Beginner
Beginner
Posts: 1
Joined: Thu Sep 29, 2005 4:44 pm

Flickering pb with pdf in iframe, Any news ?

Post by guim7 »

I cope with exactly the same issue and can not manage to solve that...

The problem exists with adobe reader loaded in an iframe and a menu over it.
With any other content, it works seamlessly !!

Please help me, i am despered !

thanks in advance for your help.
Guim7
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Flickering and PDF

Post by Migru »

Hi

I am using IFRAME and there are some PDF Files to download too within the site I am administering. Normally there is, at the moment no need to load these PDFs into an environment together with the Milonic menu system. But, when reading these posts, I modified one of the targets (in an IFRAME) from _blank to _self, in order to load the PDF into the IFRAME. This works with IE only, not so with FF, which opens a new window whatever target is specified.
So in IE, the PDF appears in the IFRAME but - no flickering can be observed, when the submenus (one of the "navy blue" colored menus) comes across the iframe, which contains the PDF. The link is

http://www.dhyg.de/pdfs.html

and the pdf which relates to the observation above, is the last one there in the list. "(Die Geschäftsordnung (3 Seiten)"

I have to add something: The test I made was using the ACROBAT 6.0 for opening the file. When I did that with the READER 7.0, flickering could be observed as reported !!! So it might rather be a problem for ADOBE than for MILONIC or Microsoft.

Michael
Post Reply