589 posts
  • Power Elite Author: Sold more than $1M on Envato Market
  • Has sold $1M+ on Envato Market and is now a Power Elite Author
  • Had an item featured in a magazine
  • Made it to the Authors' Hall of Fame
+20 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
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
campolar
says

A demo will really help :D

589 posts
  • Power Elite Author: Sold more than $1M on Envato Market
  • Has sold $1M+ on Envato Market and is now a Power Elite Author
  • Had an item featured in a magazine
  • Made it to the Authors' Hall of Fame
+20 more
theMOLITOR
says
A demo will really help :D

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

1799 posts
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+4 more
BroOf
says

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

589 posts
  • Power Elite Author: Sold more than $1M on Envato Market
  • Has sold $1M+ on Envato Market and is now a Power Elite Author
  • Had an item featured in a magazine
  • Made it to the Authors' Hall of Fame
+20 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

4459 posts ThemeForest Reviewer
  • Has referred 1+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Member of the 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
  • Has been part of the Envato Community for over 5 years
  • Has referred 10+ members
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+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.
});
589 posts
  • Power Elite Author: Sold more than $1M on Envato Market
  • Has sold $1M+ on Envato Market and is now a Power Elite Author
  • Had an item featured in a magazine
  • Made it to the Authors' Hall of Fame
+20 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

589 posts
  • Power Elite Author: Sold more than $1M on Envato Market
  • Has sold $1M+ on Envato Market and is now a Power Elite Author
  • Had an item featured in a magazine
  • Made it to the Authors' Hall of Fame
+20 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