Ok I did the following:

twoColElsLt_css :ERXStyleSheet{
        filename = "twoColElsLt.css";
        href = "/ControlHorarios/WebServerResources/CSS/twoColElsLt.css";
        
        
}

and copied the WebserverREsources folder into the /library/webserver/ documents/controlhorarios/ and the csss its working now. but the JS due that it has no href binding then. I use the same filename with the whole path: /ControlHorarios/WebServerResources/JS/dynapi.js

But I was having problem with this line'
<script language="Javascript">
                dynapi.library.setPath('./src/');
                dynapi.library.include('dynapi.api');
                dynapi.library.include('TemplateManager');
                dynapi.library.include('HTMLCalendar');
        </script>


the first one of the script. I had to orgineze the folder under / library/webserver/documetns/MyApp/ so the .js that im using will match the path.

now its working,
I dunno if this was "the" solution, but it worked so far, and im with a smile in my face.

Regards

Gustavo

On Sep 30, 2008, at 8:57 AM, WebObjects wrote:


On Sep 30, 2008, at 8:56 AM, Gustavo Pizano wrote:

Ok i did what I wrote bellow, and well no compiling errors, but when launching the app, I see nothing form the .css or.js it seems the paths are wrong, I was looking into the list and saw someone had the same problem but found no solution to it. I dunno if I should put the whole project somewhere, I saw one day one guy putting into /library/webserver/ and somewhere there, but I don't recall where exactly.




Regards

Gsutavo
On Sep 30, 2008, at 7:58 AM, WebObjects wrote:

Hello and thanks for the posts....
Im  glad im using wonder.!
One question

I see you are using inline bindings, isn't it?.

So I can do the following
<webobject name ="SSCSS"></webobject>

.wod
SSCSS : ERXStyleSheet{
filename = "CSS/MyCssFile.css";
framework = "whatever";
}


the same with the JavaScript.

now, two questions, this method will look into the WebServerResources folder? Second: I see in the wonder Api that this ERXStyleSheet has diferent bindings, can I just leave the framework biding to null?, I mean what for is it? well yes, it says:
framework       name of the framework for the style sheet

another thing before I forget, Im using an open source js to create a dynamic calendar on the webpage, it work for me in a simple html created in DreamWeaver, but I was thinking how to put the following:

        <script language="Javascript">
                dynapi.library.setPath('./src/');
                dynapi.library.include('dynapi.api');
                dynapi.library.include('TemplateManager');
                dynapi.library.include('HTMLCalendar');
        </script>

Just put instead the dynapi.library.setPath('./src/'); dynapi.library.setPath('../../WebServerResources/Others/src/'); ?

sorry.. too many questions.?


Regards
Gustavo

On Sep 30, 2008, at 6:40 AM, Mike Schrag wrote:

ERXResponseRewriter .addStylesheetResourceInHead(context().response(), context(), null, "my.css"); ERXResponseRewriter .addScriptResourceInHead(context().response(), context(), null, "my.js");
I would only use this method if you're injecting CSS/js from a subcomponent. If you are adding it in your headerfooter component, you should use:

<wo:ERXStyleSheet framework="whatever" filename="CSS/ MyCSSFile.css"/> <wo:ERXJavaScript framework="whataver" filename="Javascript/ MyJavascriptFile.css"/>

ms

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/webobjectspicora%40gmail.com

This email sent to [EMAIL PROTECTED]




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to