Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Uncaught SyntaxError: Unexpected end of input

    In my public PC everything functions fine but when i upload the website on webhost i get these errors and the website got no functionality,

    Errors;
    Uncaught SyntaxError: Unexpected end of input scripts.js:325
    Uncaught ReferenceError: markwickConstr is not defined (index):19

    The code that is causing the error on the webhost but it functions fine on local PC

    Code:
    $('.link-subcategory').live('click', function() {
    				$('.slideshow').cycle(0);
    				$('.slideshow1').cycle(0);
    				$('.slideshow2').cycle(0);
    				$('.slideshow3').cycle(0);
    				$('.slideshowBig').cycle(0);
    				$('.slideshowBig1').cycle(0);
    				$('.slideshowBig2').cycle(0);
    				$('.slideshowBig3').cycle(0);
        $('.slideshow2').cycle({
    
    		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
    		speed:1000,
    		autostop:	   true,	  // true to end slideshow after X transitions (where X == slide count)
    		autostopCount: 2	  // number of transitions (optionally used with autostop to define X)
    
    	});
    	$('.slideshow').cycle({
    
    		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
    		speed:1700,
    		autostop:	   true,	  // true to end slideshow after X transitions (where X == slide count)
    		autostopCount: 2	  // number of transitions (optionally used with autostop to define X)
    
    	});
    		$('.slideshow1').cycle({
    
    		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
    		speed:2400,
    		autostop:	   true,	  // true to end slideshow after X transitions (where X == slide count)
    		autostopCount: 2	  // number of transitions (optionally used with autostop to define X)
    
    	});
    		$('.slideshow3').cycle({
    
    		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
    		speed:3100,
    		autostop:	   true,	  // true to end slideshow after X transitions (where X == slide count)
    		autostopCount: 2	  // number of transitions (optionally used with autostop to define X)
    
    	});
    		$('.slideshowBig2').cycle({
    
    		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
    		speed:3800,
    		autostop:	   true,	  // true to end slideshow after X transitions (where X == slide count)
    		autostopCount: 2	  // number of transitions (optionally used with autostop to define X)
    
    	});
    		$('.slideshowBig').cycle({
    
    		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
    		speed:4500,
    		autostop:	   true,	  // true to end slideshow after X transitions (where X == slide count)
    		autostopCount: 2	  // number of transitions (optionally used with autostop to define X)
    
    	});
    		$('.slideshowBig3').cycle({
    
    		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
    		speed:5200,
    		autostop:	   true,	  // true to end slideshow after X transitions (where X == slide count)
    		autostopCount: 2	  // number of transitions (optionally used with autostop to define X)
    
    	});
    		$('.slideshowBig1').cycle({
    
    		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
    		speed:5900,
    		autostop:	   true,	  // true to end slideshow after X transitions (where X == slide count)
    		autostopCount: 2	  // number of transitions (optionally used with autostop to define X)
    
    	});
    });
    
    $('#about-button').live('click', function() {
    	$('.slidecontent').cycle({
    
    		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
    		speed:2000,
    		autostop:	   true,	  // true to end slideshow after X transitions (where X == slide count)
    		autostopCount: 2	  // number of transitions (optionally used with autostop to define X)
    	});
    		$('.slideshowBig2').cycle({
    
    		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
    		speed:4800,
    		autostop:	   true,	  // true to end slideshow after X transitions (where X == slide count)
    		autostopCount: 2	  // number of transitions (optionally used with autostop to define X)
    
    	});
    		$('.slideshowBig').cycle({
    
    		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
    		speed:5500,
    		autostop:	   true,	  // true to end slideshow after X transitions (where X == slide count)
    		autostopCount: 2	  // number of transitions (optionally used with autostop to define X)
    
    	});
    		$('.slideshowBig1').cycle({
    
    		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
    		speed:6200,
    		autostop:	   true,	  // true to end slideshow after X transitions (where X == slide count)
    		autostopCount: 2	  // number of transitions (optionally used with autostop to define X)
    
    	});
    	$('.slideshowBig3').cycle({
    
    		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
    		speed:6900,
    		autostop:	   true,	  // true to end slideshow after X transitions (where X == slide count)
    		autostopCount: 2	  // number of transitions (optionally used with autostop to define X)
    
    	});
    });
    How can i make my slideshow functional? As i think there is something wrong with the click events.

    Any Help?

    Thanks

  • #2
    Senior Coder
    Join Date
    Dec 2010
    Posts
    2,396
    Thanks
    12
    Thanked 569 Times in 562 Posts
    Those errors are not related to the code you posted ... your code example doesn't have 325 lines and there is no identifier called 'markwickConstr'

    The first error leads me to the assumption that you might want to use UTF-8 character encoding (without BOM) in your preferred editor and set all the relevant character encoding settings to UTF-8 too.

    For the second error we need to see the related code.

    EDIT: Btw, which version of jQuery are you using? .live() has been deprecated for quite a while now, it should be replaced by .on() (but mind the syntax differences!)

  • #3
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    line 325 is the click button options whenever i remove them my website fucntions correctly just dont have the slideshows working anymore


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •