• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: need help with javascript path when app is deployed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >need help with javascript path when app is deployed (From: Baiss Eric Magnusson <email@hidden>)

  • Prev by Date: Re: recognising dead instances
  • Next by Date: Re: Objects don't get initialized sometimes
  • Previous by thread: Re: need help with javascript path when app is deployed
  • Next by thread: [OT] Subclipse plug-in _incredibly_ slow
  • Index(es):
    • Date
    • Thread