597 posts
  • Author Level 12
  • Freebie
  • Collector Level 2
  • Winner
+21 more
theMOLITOR
says

Hola!

I’m using the nivo slider on a project. I’m also using the jQuery .load() function to navigate the site.

The problem I’m having is this… when I navigate away from the slider page and then come back (via .load), the “next” and “previous” slider buttons aren’t working.

The slider is going through the transitions, so I know the script is working properly after .load(), I just can’t for the life of me figure out why those nav buttons aren’t working.

Here is a snippet of the script I’m using: http://pastie.org/962315

1182 posts
  • 6 Years of Membership
  • Affiliate Level 1
  • Collector Level 2
  • Exclusive Author
campolar
says

A demo will really help :D

597 posts
  • Author Level 12
  • Freebie
  • Collector Level 2
  • Winner
+21 more
theMOLITOR
says
A demo will really help :D

I know. Sorry, I’m not able at this time :-(

1799 posts
  • Affiliate Level 1
  • Author Level 4
  • Beta Tester
  • Collector Level 2
+4 more
BroOf
says

Maybe you should initialize the slider again in the .load() callback.

597 posts
  • Author Level 12
  • Freebie
  • Collector Level 2
  • Winner
+21 more
theMOLITOR
says
Maybe you should initialize the slider again in the .load() callback.

I’m doing that already, but thanks. http://pastie.org/962315

4483 posts ThemeForest Senior Reviewer
  • Affiliate Level 1
  • Author Level 6
  • Collector Level 3
  • Envato Team
+14 more
Ivor
Envato team
says
Maybe you should initialize the slider again in the .load() callback.
I’m doing that already, but thanks. http://pastie.org/962315

The author of Nivo is an author here too, he can help you Chris :)http://codecanyon.net/user/gilbitron he’s also in twitter – http://twitter.com/gilbitron

629 posts
  • 5 Years of Membership
  • Affiliate Level 2
  • Collector Level 2
  • Exclusive Author
+4 more
VagrantRadio
says

jQuery can’t access items that are rendered through the load() function, try binding live() to make your calls after the load() function has been initiated.

$('.clickme').live('click', function() {
  // Live handler called.
});
597 posts
  • Author Level 12
  • Freebie
  • Collector Level 2
  • Winner
+21 more
theMOLITOR
says
jQuery can’t access items that are rendered through the load() function, try binding live() to make your calls after the load() function has been initiated.

Tried that, but thanks ;-)

@Ivor Thanks! I’ll try him :-D

597 posts
  • Author Level 12
  • Freebie
  • Collector Level 2
  • Winner
+21 more
theMOLITOR
says

Success!!!

I had to load the script via the .getScript() function after successful .load().

I really appreciate the help though! You guys rock :-D

by
by
by
by
by
by