Coincidence, I was just implementing FCKEditor also. Three ways to
reference the Javascript and other resources in your project such as
CSS.
1. Add the Javascript to your WebServerResources in your project then
add a WOGenericContainer to your Component. Bind the
WOGenericContainers src value to a method which uses ((Application)
application()).resourceManager().urlForResourceNamed().
Script : WOGenericContainer{
elementName="script"
language="_javascript_"
type="text/_javascript_"
src=methodNameThatCallsWOResourceManager.urlForResourceNamed()
}
2. If your using Wonder it's easier. Add the Ajax framework, add the
files to your project as above then in your component override
appendToResponse() and add AjaxUtils.addScriptResourceInHead
(WOContext context, WOResponse response, String fileName)
3. There is another way with Apache and VirtualHosts but those two
above will accomplish what you need.
PaulS
On Aug 9, 2007, at 4:47 PM, [EMAIL PROTECTED]
wrote:
Hi all,
How does one go about including a javascript in a page? Specifically,
I am trying to incorporate TinyMCE (or FCKEditor) in a form.
I have the following in my html:
<script language="_javascript_" type="text/_javascript_"
src="/jscripts/tiny_mce/tiny_mce.js"></script>
<script language="_javascript_" type="text/_javascript_">
tinyMCE.init({
mode : "textareas"
});
</script>
<webobject name="Form">
Stutt lýsing: <webobject name = "ShortDescription"></webobject>
_______________________________________________
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]