Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / nivoslider Javascript not being loaded

nivoslider Javascript not being loaded

Views: 1,150

Results 1 to 4 of 4
3 Oct 2012, 4:39 PM
#1
lar48ry avatar

lar48ry

New Zenner

Join Date:
May 2012
Posts:
18
Plugin Contributions:
0

nivoslider Javascript not being loaded

I have installed the nivoslider and the javascript is not appearing on the page.

This is the script that is appearing:

<link rel="stylesheet" type="text/css" href="includes/templates/hck/css/stylesheet.css" /> <link rel="stylesheet" type="text/css" href="includes/templates/hck/css/stylesheet_css_buttons.css" /> <link rel="stylesheet" type="text/css" href="includes/templates/hck/css/stylesheet_tables.css" /> <link rel="stylesheet" type="text/css" media="print" href="includes/templates/hck/css/print_stylesheet.css" /> <script src="includes/templates/hck/jscript/css_browser_selector.js" type="text/javascript"></script>

The templates/hck/jscript/ contains the following files: css_browser_selector, jquery.nivo.slider, jquery-1.5.1.min, but as you can see the one javascipt file appears but the other 2 don't.

Does anyone know why? :frusty:

3 Oct 2012, 6:55 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: nivoslider Javascript not being loaded

What do the instructions tell you about naming the js files? Did you paste code in html_header.php, or just use the autoload folder? To make js files autoload, they need to be named starting with jscript_, like jscript_jquery.nivo.slider.js. I don't know why the one file would autoload but not the others.

4 Oct 2012, 5:21 PM
#3
lar48ry avatar

lar48ry

New Zenner

Join Date:
May 2012
Posts:
18
Plugin Contributions:
0

Re: nivoslider Javascript not being loaded

Appreciate the response ghj42.:cool:

When I went looking for a read-me file for this problem I found this reference "read_me_onload.html", but this file does not seem to exist in v1.5 Doc File, hence this post.

Anyways, I followed your suggestion on adding the "jscript_" to all of the jscript files and it worked like a charm. So that part has made the sun shine in Mudville.:clap:

5 Jul 2014, 3:01 PM
#4
izzo avatar

izzo

New Zenner

Join Date:
Jun 2014
Location:
Bulgaria
Posts:
2
Plugin Contributions:
0

Re: nivoslider Javascript not being loaded

gjh42:

What do the instructions tell you about naming the js files? Did you paste code in html_header.php, or just use the autoload folder? To make js files autoload, they need to be named starting with jscript_, like jscript_jquery.nivo.slider.js. I don't know why the one file would autoload but not the others.

Glad I found this, had the same issue as OP but your post helped me out to get the slider working.