Solved

Javascript works local but not on server, any reasons why this might be?

Posted on 2009-04-09
3
441 Views
Last Modified: 2012-05-06
Hiya all

Right this page here http://www.exhibition-vision.co.uk/?page=home_test is meant to display an Ajax slideshow but the main image is blank.

Works locally however and I've uploading and downloaded the whole website to ensure the files match. All I can think is that its my hosting, is that possible?

If someone could look at the errors and give me advice that would be great. I've not done enough JS to really get this working myself without tears.

Thanks
Ryan
0
Comment
Question by:Ryan Bayne
  • 2
3 Comments
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24106185
First off I get

Error: BackgroundSlider is not defined
Source File: http://www.exhibition-vision.co.uk/ajax_gallery/slideshow/slideshow.js
Line: 81
0
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 125 total points
ID: 24106193
and here is why:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /ajax_gallery/utils/backgroundslider.js was not found on this server.</p>
<hr>
<address>Apache/2 Server at www.exhibition-vision.co.uk Port 80</address>
</body></html>

Open in new window

0
 
LVL 2

Author Comment

by:Ryan Bayne
ID: 24108042
Jeaze it was a spelling mistake! I need to setup my localhost to behave the same way as this is what made me think it was basically caused by hosting.

cheers
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question