Jump to content

jquery issue


Recommended Posts

Hi all,

I have the same files on different URL's but get an error on one url and don't get one on the other url.

The used .js files are coming from a template, so nothing I wrote myself.

This is the error I get from one url, whereas the other url runs fine:


Uncaught SyntaxError: Invalid or unexpected token		jquery.js:2
Uncaught SyntaxError: missing ) after argument list		plugins.js:689
Uncaught ReferenceError: jQuery is not defined 			functions.js:1
at function.js: 


Any clues why one url gives errors and another url doesn't?


The one with errors is a url with lot of other files (its a running website) the url without errors is almost empty, thats an url for testing and so...


This is the code of the page I am loading to test om both url's:

<!DOCTYPE html>
<html dir="ltr" lang="en-US">
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="author" content="SemiColonWeb" />

    <!-- Stylesheets
    ============================================= -->
    <link rel="stylesheet" href="/fotosaangepast/magnific-popup.css" type="text/css" />

    <!-- External JavaScripts
    ============================================= -->
	<script type="text/javascript" src="/fotosaangepast/jquery.js"></script>
	<script type="text/javascript" src="/fotosaangepast/plugins.js"></script>

    <!-- Document Title
    ============================================= -->
	<title>Gallery | Canvas</title>
			<div class="content-wrap">
				<div class="container clearfix">
					<div class="col_full clearfix">
						<h3>Michel is dit wat?</h3>
							<div class="masonry-thumbs col-2" data-big="3" data-lightbox="gallery">
								<a href="/images/BBP/projectfotos/0075/big_1530100247.jpg" data-lightbox="gallery-item"><img class="image_fade" src="/images/BBP/projectfotos/0075/thumb_1530100247.jpg" alt="Gallery Thumb 1"></a>
								<a href="/images/BBP/projectfotos/0075/big_1530100394.jpg" data-lightbox="gallery-item"><img class="image_fade" src="/images/BBP/projectfotos/0075/thumb_1530100394.jpg" alt="Gallery Thumb 1"></a>
								<a href="/images/BBP/projectfotos/0075/big_1530100446.jpg" data-lightbox="gallery-item"><img class="image_fade" src="/images/BBP/projectfotos/0075/thumb_1530100446.jpg" alt="Gallery Thumb 1"></a>
								<a href="/images/BBP/projectfotos/0075/big_1530100626.jpg" data-lightbox="gallery-item"><img class="image_fade" src="/images/BBP/projectfotos/0075/thumb_1530100626.jpg" alt="Gallery Thumb 1"></a>
								<a href="/images/BBP/projectfotos/0075/big_1530100789.jpg" data-lightbox="gallery-item"><img class="image_fade" src="/images/BBP/projectfotos/0075/thumb_1530100789.jpg" alt="Gallery Thumb 1"></a>
		<script type="text/javascript" src="/fotosaangepast/functions.js"></script>


Any help is really appreciated ;)


Edited by Bogey
Link to comment
Share on other sites

It looks like your copy of jQuery is corrupted. Plugins.js and functions.js both have issues as well. You should contact the person who provided these files and tell them about it.

Link to comment
Share on other sites

The jQuery error is usually produced because your jquery code has an error of some kind, as pointed out by the two following errors, The last error usually means your code expects '$' as a reference to jquery, but you are using 'jQuery'  which is used to prevent conflict with other jquery versions or plugin coding by using 'jQuery.noConflict()'

Edited by dsonesuk
Link to comment
Share on other sites

Strange... I don't understand how this happens :S


However, I downloaded the laters version of the template. Got the latest versions of the files.... now it works!!! :)


  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...