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