Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά κατάχρησης».

Learn More

A javascript slideshow works perfectly in FF 10.0 on my PC but fails when transferred to webspace, giving an "is not a function" error. The file is http://www.bcbm.co.uk/shares/Apperley/index2.htm. Any help welcome. It works on line in Safari

  • 3 απαντήσεις
  • 1 έχει αυτό το πρόβλημα
  • 1 προβολή
  • Τελευταία απάντηση από andrewcooley

more options

It's a straightforward HTML page generated with Frontpage 4.0 and uses javascript from Javascript Kit (http://www.javascriptkit.com/script/script2/thumbslider.shtml) which works fine in the demo. My version also works fine when the file is opened by FF 10.0 from my PC, but not when loaded from webspace. The .js, .css and image files are all on line in both cases.

It's a straightforward HTML page generated with Frontpage 4.0 and uses javascript from Javascript Kit (http://www.javascriptkit.com/script/script2/thumbslider.shtml) which works fine in the demo. My version also works fine when the file is opened by FF 10.0 from my PC, but not when loaded from webspace. The .js, .css and image files are all on line in both cases.

Επιλεγμένη λύση

You missed out a forward slash in some links (http:/ instead of http://):

<script type="text/javascript" src="http:/www.bcbm.co.uk/js/thumbslide.js">
<link rel="stylesheet" type="text/css" href="http:/www.bcbm.co.uk/js/thumbslide.css" />
Ανάγνωση απάντησης σε πλαίσιο 👍 0

Όλες οι απαντήσεις (3)

more options

I got a file that worked by copying from the demo page and the only difference in the final files was that the non-working one had single slashes in the url references to the .js and .css files.

Why that was ignored when running from the file on my pc, I don't know. The "is not a function" error message appeared to be unrelated to this, but would result from not finding the .js file

more options

Επιλεγμένη λύση

You missed out a forward slash in some links (http:/ instead of http://):

<script type="text/javascript" src="http:/www.bcbm.co.uk/js/thumbslide.js">
<link rel="stylesheet" type="text/css" href="http:/www.bcbm.co.uk/js/thumbslide.css" />

Τροποποιήθηκε στις από το χρήστη cor-el

more options

Thanks. I still don't know how it could work OK on my pc when using the duff url - but there is no longer a problem.