Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
CSS not used
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
edgarsmolow  
View profile  
 More options Mar 24 2009, 2:45 pm
From: edgarsmolow <edgarsmo...@gmail.com>
Date: Tue, 24 Mar 2009 11:45:15 -0700 (PDT)
Local: Tues, Mar 24 2009 2:45 pm
Subject: CSS not used
CSS is used with URL:
http://localhost/logic/q01

The page is rendered as expected, with CSS.  But, when the following
URL is invoked, the page is not rendered with CSS for some reason:

http://localhost/logic/q01/ABCDADF84093840384

If I understand Routes, "logic" is mapped as the controller and "q01"
as the action.  In the second URL, "ABCDADF84093840384" is mapped as
the id.  Why is the page NOT rendered with CSS if the id is appended
to the URL?  Here's entries in Routes:

        map.connect('/error/{action}', controller='error')
        map.connect('/error/{action}/{id}', controller='error')

        # CUSTOM ROUTES HERE

        map.connect('home', '/', controller='home', action='index')
        map.connect('/{controller}/{action}/{id}', controller='logic',
action='index')
        map.connect('/{controller}/{action}')
        map.connect('/{controller}')

Thanks.
Edgar


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Piotr Kęplicz  
View profile  
 More options Mar 24 2009, 3:15 pm
From: Piotr Kęplicz <kepl...@cmc.pl>
Date: Tue, 24 Mar 2009 20:15:36 +0100
Local: Tues, Mar 24 2009 3:15 pm
Subject: Re: CSS not used
edgarsmolow:

> CSS is used with URL:
> http://localhost/logic/q01

> The page is rendered as expected, with CSS.  But, when the following
> URL is invoked, the page is not rendered with CSS for some reason:

> http://localhost/logic/q01/ABCDADF84093840384

You haven't showed the most important - CSS URL in your template. Most
probably it's relative (../css/stylesheet.css) instead of absolute
(/css/stylesheet.css).

.pk.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wyatt Baldwin  
View profile  
 More options Mar 24 2009, 3:48 pm
From: Wyatt Baldwin <wyatt.lee.bald...@gmail.com>
Date: Tue, 24 Mar 2009 12:48:35 -0700 (PDT)
Local: Tues, Mar 24 2009 3:48 pm
Subject: Re: CSS not used
On Mar 24, 12:15 pm, Piotr Kęplicz <kepl...@cmc.pl> wrote:

> edgarsmolow:

> > CSS is used with URL:
> >http://localhost/logic/q01

> > The page is rendered as expected, with CSS.  But, when the following
> > URL is invoked, the page is not rendered with CSS for some reason:

> >http://localhost/logic/q01/ABCDADF84093840384

> You haven't showed the most important - CSS URL in your template. Most
> probably it's relative (../css/stylesheet.css) instead of absolute
> (/css/stylesheet.css).

Also, are you using `url('/css/style.css')`?

<link rel="stylesheet" type="text/css" href="${url('/stylesheets/
base.css')}" />

This will ensure your links work in all cases, whether you're running
your app at a prefix or not.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
edgarsmolow  
View profile  
 More options Mar 24 2009, 4:48 pm
From: edgarsmolow <edgarsmo...@gmail.com>
Date: Tue, 24 Mar 2009 13:48:50 -0700 (PDT)
Local: Tues, Mar 24 2009 4:48 pm
Subject: Re: CSS not used

>> Also, are you using `url('/css/style.css')`?

>> <link rel="stylesheet" type="text/css" href="${url('/stylesheets/base.css')}" />

>> This will ensure your links work in all cases, whether you're running
>> your app at a prefix or not.

That's exactly what I was looking for.  Thanks!

Edgar

On Mar 24, 3:48 pm, Wyatt Baldwin <wyatt.lee.bald...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »