• 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: Chuck Hill <email@hidden>
  • Date: Sat, 23 Jan 2010 17:25:36 -0800


On Jan 23, 2010, at 4:52 PM, Baiss Eric Magnusson wrote:

I get "not found JavaScript file:"

http://track-your-finances.com/WebObjects/tyf.woa/Contents/WebServerResources/tyf/jsScripts/ObjSelect_js.txt

So the path is

/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

And that path is

/tyf/WebObjects/tyf.woa/Contents/WebServerResources/tyf/jsScripts


Which... is not the same.

So not sure why it works on the server machine. Have you been messing with the doc root setup?

I suspect that what you need is

cd /Library/WebServer/Documents
mv tyf/WebObjects .



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>


And

--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects








_______________________________________________
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: need help with javascript path when app is deployed
  • Next by Date: [OT] Subclipse plug-in _incredibly_ slow
  • Previous by thread: need help with javascript path when app is deployed
  • Next by thread: Re: need help with javascript path when app is deployed
  • Index(es):
    • Date
    • Thread