Hi there again. I am willing to help you but only posting a small bit of
code from the plugin example is not going to help me see what you are
doing wrong. You say you have verified the image paths, yet they don't
show up? I would like to see *exactly* what you have in your txt file.
It is highly likely that what you have in your text file is what is
breaking that function. 

The function: getItemHTML(data) takes the data from the text file and
among other things, builds the link to load the larger image in the
thickbox. But it is geared around loading images from flickr.

Are you trying to replicate everything in the demo? If so, you need two
images. A thumbnail that has "_s" in the filename before ".jpg" and a
medium size image that has "_m" before ".jpg. The _m.jpg image will be
the one that gets loaded into the thickbox. 

If you post a link to your test page, I will be happy to look at the
source and point you in the right direction.

-Marshall


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of planner
Sent: Monday, March 05, 2007 11:17 PM
To: discuss@jquery.com
Subject: [jQuery] carousel example with dynamic content via ajax



Folks;

I am trying to implement the carousel example with dynsmic content
loading
via ajax. The images I'm specifying in my version of the *.txt file are
located in a directory in the root of my server. The problem is when the
page loads,  the images are not shown in the carousel: only the names
specified at the end of each line in the *.txt file are shown. 

I've verified that the path names for the images are good in the
carousel js
code. So I do not think that the problem is with path names. I do think
that
the issue may lie in this section of the js code:

<snip>
 .....

function getItemHTML(data)
{
    var split = data.split(";");
    var url   = jQuery.trim(split[0]);
    var title = jQuery.trim(split[1]);
    var url_m = url.replace(/_s.jpg/g, '_m.jpg');
    return ' ' + url_m + '  ' + url + '  ';
};

....
--</snip>
 I have a pretty good idea what the code snippet is doing, but I do not
know
how to customize it for my specific case. 

thanks for any help
-- 
View this message in context:
http://www.nabble.com/carousel-example-with-dynamic-content-via-ajax-tf3
353866.html#a9327163
Sent from the jCarousel mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to