You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Scrollable does not work if loaded via Ajax Created Nov 12, 2009

This thread is solved

Views: 2345     Replies: 11     Last reply Dec 27, 2011  
You must login first before you can use this feature

captainh2ok

Posts: 3

Registered:
Nov 12, 2009

Scrollable does not work if loaded via Ajax

Posted: Nov 12, 2009

Hello,

i have a content slider which contents are loaded via AJAX. And inside the loaded content there are some scrollables (each wrapped inside divs).

Now the problem:

On first page load the slider contents are loaded via AJAX and the scrollables inside WORK fine!

When i slide to the end of my slider, new contents (with scrollables inside) are automatically loaded via AJAX. After the AJAX call is successful i fire a function to init the new loaded scrollables, but the loaded scrollables does NOT WORK!

I'm happy for every idea to solve this problem! Thanks in advance!

Gehiks

Posts: 1

Registered:
Nov 12, 2009

» Scrollable does not work if loaded via Ajax

Posted: Nov 12, 2009

Reply to: Scrollable does not work if loaded via Ajax, from captainh2ok
Hi,
I encounter the same problem.

custa1200

Posts: 54

Registered:
Oct 31, 2009

» » Scrollable does not work if loaded via Ajax

Posted: Nov 19, 2009

Reply to: » Scrollable does not work if loaded via Ajax, from Gehiks
You have to initiate your function again after the AJAX response

captainh2ok

Posts: 3

Registered:
Nov 12, 2009

[SOLVED] Scrollable does not work if loaded via Ajax

Posted: Nov 19, 2009

Reply to: Scrollable does not work if loaded via Ajax, from captainh2ok
I solved the problem by wrapping around the Scrollable call with an jQuery "each" function:


$("div.loremIpsum").each(function(){
 $(this).scrollable({
 size: 1,
 vertical: false,
 easing: 'easeOutQuint',
 speed: 600,
 keyboard: true,
 clickable: false
 })
})

cfconcepts

Posts: 6

Registered:
Jan 26, 2010

» Scrollable does not work if loaded via Ajax

Posted: Feb 7, 2010

Reply to: Scrollable does not work if loaded via Ajax, from captainh2ok
Do you mind sharing your code for the autoloading when getting to the end of the scroller?

Thanks!

Randy

Manidf

Posts: 6

Registered:
Oct 18, 2009

Demo area scrollable

Posted: Feb 8, 2010

Reply to: » Scrollable does not work if loaded via Ajax, from cfconcepts
Hello gentlefolk sorry to butt in like this, but are you all talking about the main scrollable that is shown here:http://flowplayer.org/tools/demos/index.html

which is the very same one I am having issues with when trying to get it to work in IE7 as shown here:http://flowplayer.org/tools/forum/35/34219

thanks for your time
Manidf

cfconcepts

Posts: 6

Registered:
Jan 26, 2010

» Demo area scrollable

Posted: Feb 8, 2010

Reply to: Demo area scrollable, from manidf
I was talking about the code that loaded more data when you got to the end of the scrollable. I ended up just rolling my own scrollable code. I would say I am about 75% done.

Randy