Jquery/Javascripts werken niet bij andere host..

Status
Niet open voor verdere reacties.

pepernoot

Gebruiker
Lid geworden
14 mei 2009
Berichten
322
hallo daar,

Ik ben pas overgestapt op een andere host maar alle Javascripts/Jquery scripts lijken niet meer te werken.
Wat best opmerkelijk is omdat ik hetzelfde zipje(inhoud mijn site) heb geunzipt in de public HTML van mijn nieuwe host.

Waar kan dit aan liggen?
 
Het helpt bij dit soort gevallen trouwens om een link naar je site te geven... Je vraagt een monteur toch ook niet je auto te repareren zonder het ding mee te nemen naar de garage?
 
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="css/style.css"/>
        
<title>title</title>

</head>

<body>

		<div id="banner">
        	<img src="img/Banner.png" /><br /><br />
            <div id="container">Coming Soon..</div>
        </div>
        

        <!-- JavaScript includes -->
		<script src="http://code.jquery.com/jquery-1.6.3.min.js"></script>
		<script src="scripts/jquery.shuffleLetters.js"></script>
        <script src="scripts/script.js"></script>
        
</body>
</html>

[JS]/**
* @name Shuffle Letters
* @author Martin Angelov
* @version 1.0
* @url http://tutorialzine.com/2011/09/shuffle-letters-effect-jquery/
* @license MIT License
*/

(function($){

$.fn.shuffleLetters = function(prop){

var options = $.extend({
"step" : 8, // How many times should the letters be changed
"fps" : 25, // Frames Per Second
"text" : "", // Use this text instead of the contents
"callback" : function(){} // Run once the animation is complete
},prop)

return this.each(function(){

var el = $(this),
str = "";


// Preventing parallel animations using a flag;

if(el.data('animated')){
return true;
}

el.data('animated',true);


if(options.text) {
str = options.text.split('');
}
else {
str = el.text().split('');
}

// The types array holds the type for each character;
// Letters holds the positions of non-space characters;

var types = [],
letters = [];

// Looping through all the chars of the string

for(var i=0;i<str.length;i++){

var ch = str;

if(ch == " "){
types = "space";
continue;
}
else if(/[a-z]/.test(ch)){
types = "lowerLetter";
}
else if(/[A-Z]/.test(ch)){
types = "upperLetter";
}
else {
types = "symbol";
}

letters.push(i);
}

el.html("");

// Self executing named function expression:

(function shuffle(start){

// This code is run options.fps times per second
// and updates the contents of the page element

var i,
len = letters.length,
strCopy = str.slice(0); // Fresh copy of the string

if(start>len){

// The animation is complete. Updating the
// flag and triggering the callback;

el.data('animated',false);
options.callback(el);
return;
}

// All the work gets done here
for(i=Math.max(start,0); i < len; i++){

// The start argument and options.step limit
// the characters we will be working on at once

if( i < start+options.step){
// Generate a random character at thsi position
strCopy[letters] = randomChar(types[letters]);
}
else {
strCopy[letters] = "";
}
}

el.text(strCopy.join(""));

setTimeout(function(){

shuffle(start+1);

},1000/options.fps);

})(-options.step);


});
};

function randomChar(type){
var pool = "";

if (type == "lowerLetter"){
pool = "abcdefghijklmnopqrstuvwxyz0123456789";
}
else if (type == "upperLetter"){
pool = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
}
else if (type == "symbol"){
pool = ",.?/\\(^)![]{}*&^%$#'\"";
}

var arr = pool.split('');
return arr[Math.floor(Math.random()*arr.length)];
}

})(jQuery);[/JS]

[JS]$(function(){
var container = $("#container")
container.shuffleLetters();
});

[/JS]
 
Da's geen link. We kunnen nu nog altijd niet zien of je scripts staan waar ze horen, al kun je dat natuurlijk ook best zelf even controleren.
 
sorry ik ga geen link geven...(de meta's van helpmij gaan waarschijnlijk mijn meta's overtreffen en dat staat nogal stom)
Maar ik kan je ervan verzekeren dat de links goed staan. En zeker omdat het lokaal wel werkt!
 
Wat dacht je van de url achterstevoren of gesplitst schrijven, zo krijgt helpmij geen hits op je website zoekterm en kunnen wij een 'closer look' nemen.
 
Hij geeft hier aan dat ik de rechten niet heb om o.a. het bestand jquery.shuffleLetters.js te bekijken:
You don't have permission to access /scripts/jquery.shuffleLetters.js on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Wellicht even chmodden naar de juiste rechten?
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan