Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Frinedly URLs affecting IE PNG fixFrinedly URLs affecting IE PNG fix
Previous
 
Next
New Post
8/7/2008 11:46 AM
 

Hello everyone,

I am using the IE (5.5/6) PNG fix form Angus Turnbull (www.twinhelix.com) to round module corners with transperant PNG files. The fix seems to be working fine as long as Friendly URLs are disabled from the Host menu. It took me awhile to identify Friendly URLs as the root cause and not using them is not an option.

 
This is a sample code from the container.css:
 
.containertopleft
{
       behavior: url(iepngfix.htc);
       background: url(images/cont-top-left.png);
       height: 21px;
       width:22px;
}
 
iepngfix.htc and the blank image file it needs are in the root folder (where default.aspx is). It appears as whenever Friendly URLs are used, the path to iepngfix.htc changes and it is not being called (I added some
 
New Post
8/7/2008 12:11 PM
 

you might precede both urls with a "/" to use server absolute paths


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
8/7/2008 1:56 PM
 

Thanks, but it didn't seem to make a difference.

Actually, changing it to behavior

: url(/iepngfix.htc); does not work even with Friendly URLs off.

The only thing that seems to affect the png fix is the Friendly URL setting.

Roumen

 
New Post
8/7/2008 2:31 PM
 
I’m sorry, I can’t provide an online demo, but here’s a sequence of events describing the behavior (Friendly URLs are enabled):
 
Action
PNG Fix Working?
URL in Address Bar
Click page/tab link on menu
No
/DNN/Home/Dashboard/tabid/98/Default.aspx
Switch the page to Edit mode
Yes
/DNN/Default.aspx?TabId=98
Switch to View mode
Yes
/DNN/Default.aspx?TabId=98
Refreshing the page form the browser's Refresh button
Yes
/DNN/Default.aspx?TabId=98
Click page/tab link on menu
No
/DNN/Home/Dashboard/tabid/98/Default.aspx
 
Thank you.
 
Roumen
 
New Post
8/7/2008 3:53 PM
Accepted Answer 

The url(iepngfix.htc) is using a relative URL.  So if you look at the URL in the address bar you will end up with following URLs

/DNN/Home/Dashboard/tabid/98/iepngfix.htc - BAD
/DNN/iepngfix.htc - GOOD
/DNN/iepngfix.htc - GOOD
/DNN/iepngfix.htc - GOOD
/DNN/Home/Dashboard/tabid/98/iepngfix.htc - BAD

Adding a preceding / to make it App relative may not work as it will look for /iepngfix.htc which is not really what you want.  So you can change your CSS instead to use url(/DNN/iepngfix.htc).  This is fine as long as your dev/QA/staging/production environments are all using the /DNN virtual directory.  A more flexible solution would be to write a rule for the rewriter which looked for the iepngfix.htc and rewrote the url accordingly.


Joe Brinkman
DNN Corp.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Frinedly URLs affecting IE PNG fixFrinedly URLs affecting IE PNG fix


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out