Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Jquery slider works on localhost but not online?

Featured Replies

  • Author

u mean i have problem here ? but how come it works on localhost?and i haven't chnged any code as seen here

 <script type="text/javascript" language="javascript">
 $(document).ready( function(){	
		$('#lofslidecontent45').lofJSidernews( { interval:10000,
											 	easing:'easeInOutQuad',
												duration:1200,
												auto:true } );						
	});

</script>


 

 

 

31.05.2013 10:20:00
TypeError: $(...).lofJSidernews is not a function
Source: http://mydomain007.host56.com/fusion2/
Line: 30

Dunno what to say, mate, maybe a some influence of the popup ad banner occurs there.

Edited by Lev

Morning Sash,

 

You've got this in your code: <script type="text/javascript" src="http://stats.hosting24.com/j.js"></script>

 

Which I think may be conflicting with the earlier addition of jQuery... I think the above code is also loading jQuery 1.5.2 init, therefore you have multiple versions of jQuery running. You should only have one, unless you set up a no conflict variable.

 

As you can see here : http://jsfiddle.net/LyndseyB/uUDxp/, it's working fine. Only difference is I haven't included the j.js script which is the one that's conflicting. Maybe it's a file added by itself? What it's doing is also including a jQuery library, albeit a different version, but that's what is causing your issue.

 

Anyway, let me know if this resolves it :)

Edited by Lyndsey

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.