Solved

'swfobject is undefined' when duplicating 'autoviewer' gallery script directory

Posted on 2009-04-10
2
442 Views
Last Modified: 2013-12-25
hi, im using autoviewer in this website:

www wavesports gr/gallery.html

we wanted to add a few languages, so in order to duplicate the gallery with each language's menus, i just copied all autoviewer files , including photos, to each directory:

www wavesports gr/greek/gallery.html
www wavesports gr/french/gallery.html
www wavesports gr/spanish/gallery.html
www wavesports gr/italian/gallery.html

The error i'm getting is that 'SWFobject' is undefined, and the error message is displayed: "AutoViewer requires JavaScript and the Flash Player. Get Flash here. "

any ideas where the problem might be?

Im using the latest swfobject.js, and each of the above directories has its own gallery.xml, viewer.swf, /images, and /thumbnails. Same as the /english directory that works fine!

any ideas what could be wrong?

HTML is identical between the files, only difference is the language.

also, wanted to mention that the line:

"<script type="text/javascript" src="swfobject.js"></script>"

is present on all html files

the files i've downloaded come from www airtightinteractive com/ simpleviewer/ simpleviewer.zip

##

also, ALL FILES WORK LOCALLY!

exact same files, on my desktop work OK without giving me the error.
0
Comment
Question by:george82
2 Comments
 
LVL 42

Accepted Solution

by:
David S. earned 500 total points
ID: 24120692
You didn't put copies of the swfobject.js file in the other directories and didn't change the path to compensate.

I suggest you just change the path from "swfobject.js" to "../swfobject.js" in all but the English version.
0
 

Author Comment

by:george82
ID: 24121875
i can't believe it. i forgot to change the 'selective transfers' on my ftp client, it was set to upload html files only. many thanks for the solution
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Joomla Website Malfunction 9 49
HTML button disabled 11 36
ASP.Net Session State alternatives 3 26
Cordova Camera plugin fails 2 18
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

708 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now