Solved

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

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Obsolete font tag need to convert to CSS 3 32
Make a website not indexable by google 6 28
I'm a Human captcha checkbox 13 39
Change how page is organized 3 35
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

679 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