« Return to Thread: .load jcarousel

Re: .load jcarousel

by jso :: Rate this Message:

Reply to Author | View in Thread

Hi,

lucharles wrote:
i am trying to use the .load in jquery to inject a jcarousel into my document. is this possible? when clicking the site navigation the images appear in a vertical list instead of hidden and sliding. something seems to not be loading.

for an example th eurl is:
http://commissary.memphis.edu/buildingstudio/

click on current projects and the first subnav.

a working html version of the file i am injectiing is:
http://commissary.memphis.edu/buildingstudio/galleryworking.html

and a php version which is actuall what is going to hopefully (pull from db and currently this does not have the css or js files):
http://commissary.memphis.edu/buildingstudio/current.php
You have to apply jCarousel on the loaded HTML:

function loadCurrent() {
        $("#main_content").load("current.php", function() {
                $('#mycarousel', this).jcarousel({
                        /* Configuration goes here */
                });
        });
}

Jan

 « Return to Thread: .load jcarousel

LightInTheBox - Buy quality products at wholesale price!