nicinabox / superslides

A fullscreen, hardware accelerated slider for jQuery.
http://archive.nicinabox.com/superslides
MIT License
1.51k stars 443 forks source link

Can't seem to load superslides from Ajax link #326

Open jmdgn opened 9 years ago

jmdgn commented 9 years ago

I look at the superslides html file with the modifications I've made and it loads perfectly fine.

I have linked it using jquery as an ajax link and it breaks it, is there some javascript modifications I am missing?

$("ol#nav li a").live("click", function(){ var page = $(this).attr('href'); $('#content').load('content/' + page + '.html'); return false; });

This is the script which loads the pages, any help would be greatly appreciated!

ghostrydr commented 9 years ago

Firstly .live() has been deprecated as of 1.7 and removed as of 1.9. Is it possible that you're using a newer version of jQuery? What exactly is or is not happening? Are you getting an error in the console?