Solved

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

Posted on 2009-04-10
2
443 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
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…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

867 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

15 Experts available now in Live!

Get 1:1 Help Now