Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2009-04-10
2
Medium Priority
?
453 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 43

Accepted Solution

by:
David S. earned 2000 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

972 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