569 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $750,000+ on Envato Market
  • Had an item featured in a magazine
  • Made it to the Authors' Hall of Fame
+17 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

569 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $750,000+ on Envato Market
  • Had an item featured in a magazine
  • Made it to the Authors' Hall of Fame
+17 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.

569 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $750,000+ on Envato Market
  • Had an item featured in a magazine
  • Made it to the Authors' Hall of Fame
+17 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

4388 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
+12 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
+2 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.
});
569 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $750,000+ on Envato Market
  • Had an item featured in a magazine
  • Made it to the Authors' Hall of Fame
+17 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

569 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $750,000+ on Envato Market
  • Had an item featured in a magazine
  • Made it to the Authors' Hall of Fame
+17 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

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by