|
I think I have an embarrassingly simply question that I hope someone can easily answer, but I haven't been able to figure it out yet ...
I haven't been able to get any JavaScripts to work properly on an Apache 2 server. I don't think the server is configured explicitly to prevent the scripts from running, and I've created a very simple JS script to echo some text, which works fine. The problem comes when I'm working with code packages from other folks, and moving assets from their default demo locations (usually all in the same directory) to common directories where I can better consolidate and control them (images/, scripts/, etc.). When I modify the code to do account for this, things seem fine on my workstation, but when I upload the code to this server, inevitably the scripts get screwed up and the script area on the page is either blank or collapsed. I don't see any errors in the web server logs, and Firebug (in Firefox) shows all the requested assets being loaded without any errors.
I don't work with JS a lot and I'm trying to incorporate a few "simple" scripts into a site, for an image gallery and for searching. I've changed the file ownership to that of the Apache server process (apache), added '+x' to the script files, tried adding `XBItHack On` to the Apache config (did nothing), and I'm not sure what else to try. The scripts I've tested call out to other framework scripts (mootools, jquery), which I have downloaded and added to the same scripts directory. I assume the problem may have to do with those framework scripts' not being read as expected (although they also show up as being downloaded on the page), but I don't know how to further troubleshoot.
Last edited by deesto; 10-18-2010 at 12:04 PM..
|