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 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