Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

telerik -- supercharge your DNN websites
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Make it Hot! ( ...  Frinedly URLs affecting IE PNG fix
Previous Previous
 
Next Next
New Post 8/7/2008 9:46 AM
Resolved
User is offline Roumen Stoyanov
5 posts
10th Ranked


Frinedly URLs affecting IE PNG fix 

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 10:11 AM
User is offline Sebastian Leupold
15220 posts
www.deutschnetnuke.de
1st Ranked












Re: Frinedly URLs affecting IE PNG fix 

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


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
New Post 8/7/2008 11:56 AM
User is offline Roumen Stoyanov
5 posts
10th Ranked


Re: Frinedly URLs affecting IE PNG fix 

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 12:31 PM
User is offline Roumen Stoyanov
5 posts
10th Ranked


Re: Frinedly URLs affecting IE PNG fix 
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 1:53 PM
Accepted Answer 
User is offline Joe Brinkman
1332 posts
www.dotnetnukecorp.com
6th Ranked






Re: Frinedly URLs affecting IE PNG fix 

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
DotNetNuke Corp.

The Accidental Geek - Joe Brinkman

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Make it Hot! ( ...  Frinedly URLs affecting IE PNG fix
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


ZLDNN.COM
We provide commercial DotNetNuke modules.
www.zldnn.com
DNNhost Scandinavia
SUPER fast QuadCore DELL servers, MSSQL servers, DotNetPanel, daily backup, Check out our customers websites
DNNhost.dk
Personify Design, Inc.
Seattle-based Personify Design has developed customized DotNetNuke websites for a wide range of customers to meet many different types of needs, including distributed authorship across thousands of pages to integrated Verisign e-commerce capabilities.
www.personifydesign.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP