Re: need help with javascript path when app is deployed
Re: need help with javascript path when app is deployed
- Subject: Re: need help with javascript path when app is deployed
- From: Gennady Kushnir <email@hidden>
- Date: Mon, 25 Jan 2010 10:56:10 +0300
Why don't you use dynamic url construction?
WOResourceManager.urlForResourceNamed(String aResourceName, String
aFrameworkName, NSArray aLanguagesList, WORequest aRequest)
As to me, I've written a custom dynamic element for scripts and stylesheets:
http://github.com/baywind/reusables/blob/master/Sources/net/rujel/reusables/ResourceLink.java
2010/1/24 Baiss Eric Magnusson <email@hidden>:
> I get "not found JavaScript file:"
>
> http://track-your-finances.com/WebObjects/tyf.woa/Contents/WebServerResources/tyf/jsScripts/ObjSelect_js.txt
>
> If I enter the above into the browser on the server it gets the file, but not from a remote computer.
>
> This the .wod file
> js_OnChange: WOJavaScript {
> scriptSource = "tyf/jsScripts/ObjSelect_js.txt";
> }
> This is the <pwd> from Terminal on the Server
>
> cascadewebdesign:jsScripts baiss$ pwd
>
> /Library/WebServer/Documents/tyf/WebObjects/tyf.woa/Contents/WebServerResources/tyf/jsScripts
>
> cascadewebdesign:jsScripts baiss$ ls -l
>
> -rwxr-xr-x 1 baiss admin 2695 Nov 18 17:53 ObjSelect_js.txt
>
> This is the html source from the browser window
>
> <script language="JavaScript" type="text/javascript" src="/WebObjects/tyf.woa/Contents/WebServerResources/tyf/jsScripts/ObjSelect_js.txt"></script>
>
> Thanks for the help,
> Baiss _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden