On Oct 17, 2009, at 11:46 AM, Celso wrote:

>
> Hi,
> I have a html file in the myapp/static directory that I am opening
> using web2py.
>
> I can sucessfully import the javascript content from a subdirectory of
> myapp/static using relative path, for example, src="./dojoroot/dojo/
> dojo.js".
> But, when I trying to import CSS files using relative path, for
> example, @import  "./dojoroot/dojo/resources/dojo.css"
> it doesn't. I tried other paths without sucess.
> Does anybody know the reason?

You might want to try: @import url("path goes here"), though I'm not  
sure that it makes any real difference.

Also (and this shouldn't be the problem), I'd leave out the ./ and go  
with, eg, "dojoroot/digit/...".

If you supply an absolute path, does your css import work?

> Here is the head part of my example:
>
>    <head>
>        <meta http-equiv="content-type" content="text/html;
> charset=utf-8"/>
>        <title>RTE System</title>
>        <style type="text/css">
>            @import "./dojoroot/digit/themes/tundra/tundra.css"
>            @import  "./dojoroot/dojo/resources/dojo.css"
>        </style>
>        <script type="text/javascript" src="./dojoroot/dojo/dojo.js"
> djConfig="parseOnLoad: true"></script>
>        <script type="text/javascript">
>            dojo.require("dijit.layout.ContentPane");
>            dojo.require("dijit.layout.BorderContainer");
>            dojo.require("dojo.parser");
>        </script>
>    </head>
>
> Thanks,
> Celso Axelrud




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to