Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Old 10-18-2010, 11:53 AM JavaScripts problem
Average Talker

Posts: 22
Location: NY, USA
Trades: 0
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..
deesto is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-18-2010, 03:14 PM Re: JavaScripts problem
Skilled Talker

Posts: 52
Name: Alex
Trades: 0
JS doesn't work on server side
elf2002 is offline
Reply With Quote
View Public Profile
 
Old 10-18-2010, 11:32 PM Re: JavaScripts problem
Banned

Posts: 408
Name: mushget
Trades: 0
js work on client, jsp work on server..
mushget is offline
Reply With Quote
View Public Profile Visit mushget's homepage!
 
Reply     « Reply to JavaScripts problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.99229 seconds with 12 queries