Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Released mode causes exception if CSS file has non-relative paths within
PurpleSky
#1 Posted : Thursday, January 07, 2010 8:17:31 AM(UTC)
Rank: Member
Groups: Registered

Joined: 1/1/2010(UTC)
Posts: 11
Location: Hampshire, UK
If I enable Released Mode on my site Buggy Blast Boot Camp then the css file stops working.

If I navigate to the combined css file directly it causes an exception (see below for link to exception).

Looking at the exception it doesn't seem to like the fact that a couple of images have a full qualified url rather than just a relative path.

I do this so I can route my images via a CDN rather than have them delivered from my site directly, and is perfectly valid css.

Error still persists even after I've disabled Released Mode (Although its not referred to by the site so the site works as it should) so if you want to see the exception its at

http://buggyblastbootcam...last/BuggyBlast.Default

Jenni
Purple Sky Studio
jifeng
#2 Posted : Thursday, January 07, 2010 9:42:49 AM(UTC)
Rank: Administration
Groups: Administrators, Registered

Joined: 9/3/2009(UTC)
Posts: 1,552
Location: Xiamen China
HI, You means you use image in css like this:
Code:

.css1{
background-image:url(http://buggyblastbootcamp.lg1x8zmax.simplecdn.net/Template/BuggyBlast/BinaryResource/Theme/Default/Images/bodybg.jp)
}


If it so, I will check it and fix it in next version. thanks.

Regards,

Jifeng Huang

Kooboo Team

Microsoft ASP.NET MVP
jifeng
#3 Posted : Thursday, January 07, 2010 12:00:23 PM(UTC)
Rank: Administration
Groups: Administrators, Registered

Joined: 9/3/2009(UTC)
Posts: 1,552
Location: Xiamen China
Hi, I have reproduced the issue. I found you use the background image like:

Code:

background-image:url('http://buggyblastbootcamp.lg1x8zmax.simplecdn.net/Template/BuggyBlast/BinaryResource/Theme/Default/Images/bodybg.jpg');


Please remove the quotes, for example:
Code:

background-image:url(http://buggyblastbootcamp.lg1x8zmax.simplecdn.net/Template/BuggyBlast/BinaryResource/Theme/Default/Images/bodybg.jpg);


I will check out if the background image url with quotes in line with w3c standards. But before next version, please remove the quotes.
Regards,

Jifeng Huang

Kooboo Team

Microsoft ASP.NET MVP
jifeng
#4 Posted : Thursday, January 07, 2010 1:36:40 PM(UTC)
Rank: Administration
Groups: Administrators, Registered

Joined: 9/3/2009(UTC)
Posts: 1,552
Location: Xiamen China
We have fixed it, in the next version background image url with quotes is allowed.
Regards,

Jifeng Huang

Kooboo Team

Microsoft ASP.NET MVP
PurpleSky
#5 Posted : Thursday, January 07, 2010 4:39:53 PM(UTC)
Rank: Member
Groups: Registered

Joined: 1/1/2010(UTC)
Posts: 11
Location: Hampshire, UK
Great thanks, in the meantime I'll remove the quotes.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.5.5 | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.063 seconds.