CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > microsoft_downloads.css_friendly_control_adapters Tags:
Item Type: NewsGroup Date Entered: 3/27/2007 9:12:07 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 6 Views: 59 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
7 Items, 1 Pages 1 |< << Go >> >|
LordNemesis
Asp.Net User
IE6 PrettyMenu flickering problem3/27/2007 9:12:07 AM

0/0

I've recently implemented CSS friendly control adapters by using PrettyMenu. At first everything seemed ok, but I discovered that in IE6 the menu is flickering (all other browsers are showing it correctly). After a bit google-ing I found that the flicker problem is caused by background image caching.

The fix for this problem is discribed here: http://www.groovybits.com/leftOverBits/flickerFix.aspx. I copied the PersistantImage.ashx  from this link to the root of my website.

I tried the fix, and was confident that it would work. But it doesn't. The menu is not flickering anymore, but the background image is not showing instead.

Here's the code:

KR_Menu.css:
.PrettyMenu ul.AspNet-Menu li
{
background: url (../PersistantImage.ashx?key=BasicBgNav) repeat-x;
}

web.config:
<
appSettings>
<add key="BasicBgNav" value="~/App_Themes/KR_default/bg_nav.jpg"/>
</
appSettings>

Russ Helfand
Asp.Net User
Re: IE6 PrettyMenu flickering problem3/27/2007 8:41:20 PM

0/0

The example that I posted at http://www.groovybits.com/leftOverBits/flickerFix.aspx presumed that you put your style sheets in a folder that was DIRECTLY beneath the root of your site. In that situation, the double-dots in the url for the background image brings you up one level to the root folder. If, however, you are working with a style sheet that is in an ASP.NET theme folder then you are in a situation where the style sheet is TWO levels below the root. In that case, the proper path would be:

../../PersistantImage.ashx?key=BasicBgNav

Notice that this has two doulbe-dot sets to bring you up TWO levels. That would bring you to the root if this were used in a style sheet in a theme folder.

Does that help?


Russ Helfand
Groovybits.com
LordNemesis
Asp.Net User
Re: IE6 PrettyMenu flickering problem3/28/2007 7:57:44 AM

0/0

I can't believe I lost almost a days work on that one. Indifferent

The extra ../ (I thought that it was a typo...) did the trick.

Thank you Russ!

kallileo
Asp.Net User
Re: IE6 PrettyMenu flickering problem4/12/2007 11:24:39 AM

0/0

So?if I have the PersistantImage.ashx in the root directory and the bg image of the?menu?in?the?/Images?directory?the?fix?would?be:

.PrettyMenu ul.AspNet-Menu li
{
background: url(../PersistantImage.ashx?key=BasicBgNav) repeat-x;
margin:0 2px 2px 0;
}

<appSettings>
<add key="BasicBgNav" value="~/Images/bg_nav.gif"/>
</appSettings>

Correct or No????

Russ Helfand
Asp.Net User
Re: IE6 PrettyMenu flickering problem4/12/2007 1:44:26 PM

0/0

Because your image is in the Images folder beneath the root, it is correct to set the value of the key (in the web.config) as you proposed to "~/Images/bg_nav.gif". That part is fine but is completely independent of where you happen to put the handler (ASHX file). If, as you proposed, you put the handler in the root folder then the path to it from a CSS file in a subfolder of the root is, as your sample shows, ../PersistantImage.ashx. However, if your CSS file is in a SUBsubfolder (that is, two folders down in the hierarchy from the root) then the url for the background should refer to ../../PersistantImage.ashx in order to ascend two levels to reach the place where the handler is kept.

Remember, when you are stipulating the background's url to be the handler you have to provide a path to the PeristantImage. You can do so with a site-relative path (one that starts with a forward slash) or you can use a relative path. If you use a relative path then you have to remember that it is relative to where the CSS file lives. So you need to ascend as many levels up and then descend (if necessary) to wherever the handler lives.

You might also consider simply putting the handler in the same folder as your CSS file. Then you don't need a path in front of PersistantImage.ashx at all!!!

Good luck. Let me know if the flicker fix makes a difference for you.


Russ Helfand
Groovybits.com
kallileo
Asp.Net User
Re: IE6 PrettyMenu flickering problem4/13/2007 7:26:26 AM

0/0

All my web files are in "Project" folder. The images for the menu are in the "Images"?subfolder?and?the?css?styles?in?the?"Stylesheets"?subfolder.
I put the PersistantImage.ashx file in the "Stylesheets" folder as you said and modified the css and webconfig files:

.PrettyMenu ul.AspNet-Menu li
{
background: url(PersistantImage.ashx?key=bg-menu-example.png) repeat-x;
margin:0 2px 2px 0;
}


<appSettings>
<add key="BasicBgNav" value="~/Images/bg-menu-example.png"/>
</appSettings>

and?it?doesn't work...

Russ Helfand
Asp.Net User
Re: IE6 PrettyMenu flickering problem4/13/2007 2:43:02 PM

0/0

background: url(PersistantImage.ashx?key=BasicBgNav) repeat-x;

You are creating a key in your app settings so you can use it (rather than the file name) when you invoke the handler.


Russ Helfand
Groovybits.com
7 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
IE6 PrettyMenu flickering problem - ASP.NET Forums IE6 PrettyMenu flickering problem. Last post 04-13-2007 10:43 AM by Russ Helfand . 6 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
Horizontal menu hover image - ASP.NET Forums PrettyMenu ul.AspNet-Menu li.AspNet-Menu-Hover ... I think the IE6 users will have to live with the flickering. Thanks again. Paul Weston ...
Eliminating CSS Image Flicker with IE6 - ScottGu's Blog AFAIK there is no solution of this problem under IE6. I've made some experiments to show that the cursor is flickering whenever the background of the ...
CSS Control Adapter Toolkit for ASP.NET 2.0 - ScottGu's Blog When an IE 6->9 browser or FireFox browser hits the site now, .... is there a way to modify the menus so they have less hourglass flickering? ...
ng.asp-net-forum.advanced_asp-net-localization/20 - fix error ... treenode navigateurl with javascript · pre-existing app does not work correctly in i-frame using internet explorer · ie6 prettymenu flickering problem ...
Menu Magic - Skinning question - ng.asp-net-forum.dotnetnuke - fix ... ie6 prettymenu flickering problem · configuration issue · bc30506: handles clause requires a withevents variable. how to override defaultvalue attribute in ...
PROGRAMMING 1 2 3 4 5 .PrettyMenu ul.AspNet-Menu li { background:#4682B4 url(bg_nav.gif) repeat-x; } ...... ScottGu's Blog : Eliminating CSS Image Flicker with IE6 ...
ng.asp-net-forum.advanced_asp-net-localization/20 - fix error ... treenode navigateurl with javascript · pre-existing app does not work correctly in i-frame using internet explorer · ie6 prettymenu flickering problem ...
Menu Magic - Skinning question - ng.asp-net-forum.dotnetnuke - fix ... ie6 prettymenu flickering problem · configuration issue · bc30506: handles clause requires a withevents variable. how to override defaultvalue attribute in ...
PROGRAMMING 1 2 3 4 5 .PrettyMenu ul.AspNet-Menu li { background:#4682B4 url(bg_nav.gif) repeat-x; } ...... ScottGu's Blog : Eliminating CSS Image Flicker with IE6 ...




Search This Site:










menu outputs span tags even when adapterenabled=false :-( please help!

another treeview, but i need youre help

staticdisplaylevels and maximumdynamicdisplaylevels

problems with css adaptors and using two menus

asp.net menu control - on hover makes page content disappear (ie 6)

parser error when using adapters

treeview lines

treeview crashes with error when used with the wizard control

accessibility support via skiplinktext

css friendly control adapter for checkbox list

preventing menu levels from showing up

how to use cssfriendly.dll in my webapplication?

visual studio hangs when creating a new website after installing the css controls vsi file

implementation problem

css friendly adapters & firefox not displaying correctly

cssfriendly menu uses pop-up for target=_blank

css adapter breaks createuserwizard

add adapters

non-indenting treeview

bound and template headertext overlaying datafield and itemtemplate text when rendering prettydetailsview

compilation error in menuadapter.cs

ie 7 beta 3

how to override styles dynamically in treeview control

webpart not rendering properly when added from catalog

css menu disappears on some pages

detailsview adapter css to allow multiline name spans

invalid xhtml

css menu friendly adapter and target = blank

existing site .net 2.0

asp.net ajax-enabled web site vs asp.net css friendly web site

  Privacy | Contact Us
All Times Are GMT