Re: [jQuery] jcarousel issue

2007-03-07 Thread Indigo
On Monday 05 March 2007 20:46, Marshall Salinger wrote:
 I tried to pull up the image without the ;see| at the end and I get a
 404. That is probably why it is only showing the alt text. You probably
 have your images in a subdirectory and you need to change the path to
 reflect that.

 If you want to use the code as is, you need to name your thumbnail
 images with an _s.jpg and medium images to _m.jpg. These are the
 naming conventions used by flickr. That is where the images are coming
 from.

 
This is the piece of info I was missing and did not understand.   Now I have a 
better idea of what this is doing:

 var url_m = url.replace(/_s.jpg/g, '_m.jpg');
 return 'a href=' + url_m + ' title=' + title + '

The implementatiooon works fine now. All I needed to do was create two 
different size versions of the same image, put them in the same directory and 
the code did the rest.

Thanks .

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


Re: [jQuery] jcarousel issue

2007-03-05 Thread Marshall Salinger
Can you post some sample code? It sounds like the paths to your images
is wrong.

-Marshall

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Indigo
Sent: Monday, March 05, 2007 12:23 PM
To: discuss@jquery.com
Subject: [jQuery] jcarousel issue

 
I am trying to implement a jcarousel element on a page that is not yet
public. 
The example I'm using is the one with dynamic content loading via ajax -

http://sorgalla.com/projects/jcarousel/example_dynamic_ajax.html .

My example_dynamic_ajax.txt file looks like this:

http://www.liniverse.com/see.jpg;see|
http://www.liniverse.com/me.jpg;me|
http://www.liniverse.com/now.jpg;now|
 
The issue is when the page loads, the alt text is displayed in the
carousel 
rather than the images. Is this an issue familiar to anyone? The
lightbox 
effect still works, but without the images.

TIA

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


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


Re: [jQuery] jcarousel issue

2007-03-05 Thread Abel Tamayo

So your problem comes from using jCarousel or another plugin to get the
lightbox effect? If it's jCarousel maybe the routes to each image is not
included correctly. If the problem comes from using thickbox, for example,
maybe the path to the images isn't being processed correctly for some
incompatibilities with other plugins. I had this last problem in the past,
so let me know and I will reply with the solution (too lazy to search for it
right now).

On 3/5/07, Indigo [EMAIL PROTECTED] wrote:



I am trying to implement a jcarousel element on a page that is not yet
public.
The example I'm using is the one with dynamic content loading via ajax -
http://sorgalla.com/projects/jcarousel/example_dynamic_ajax.html .

My example_dynamic_ajax.txt file looks like this:

http://www.liniverse.com/see.jpg;see|
http://www.liniverse.com/me.jpg;me|
http://www.liniverse.com/now.jpg;now|

The issue is when the page loads, the alt text is displayed in the
carousel
rather than the images. Is this an issue familiar to anyone? The
lightbox
effect still works, but without the images.

TIA

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

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


Re: [jQuery] jcarousel issue

2007-03-05 Thread Indigo

The code is exactly what you'll find by viewing the source at  
http://sorgalla.com/projects/jcarousel/example_dynamic_ajax.html . I only 
changed the image and ajax.txt file paths.

If you, however, look at the content of example_dynamic_ajax.html, you'll find 
lines like these (pay attention to the names of the files) :

http://static.flickr.com/66/199481236_dc98b5abb3_s.jpg;Flower1|
http://static.flickr.com/75/199481072_b4a0d09597_s.jpg;Flower2|

My file names are simpler and look like these:

 http://www.liniverse.com/see.jpg;see|
 http://www.liniverse.com/me.jpg;me|

I've checked and double-checked the file paths and I find no problems there, 
But looking at the js in the example, I find this section that seems to be 
performing a replacement trick on the file names:

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 'a href=' + url_m + ' title=' + title + ' 
class=thickboximg src=' + url + ' width=' + 75 + ' height=' + 75 + 
' alt=' + title + ' //a';
};


--/snip

I'm not a coder, so I do not know how to customize the above code snippet for 
my specific case.  i think the offending lines are these: 

 var url_m = url.replace(/_s.jpg/g, '_m.jpg');
return 'a href=' + url_m + ' title=' + title + '


'll appreciate any help.

TIA


On Monday 05 March 2007 14:35, Marshall Salinger wrote:
 Can you post some sample code? It sounds like the paths to your images
 is wrong.

 -Marshall

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of Indigo
 Sent: Monday, March 05, 2007 12:23 PM
 To: discuss@jquery.com
 Subject: [jQuery] jcarousel issue


 I am trying to implement a jcarousel element on a page that is not yet
 public.
 The example I'm using is the one with dynamic content loading via ajax -

 http://sorgalla.com/projects/jcarousel/example_dynamic_ajax.html .

 My example_dynamic_ajax.txt file looks like this:

 http://www.liniverse.com/see.jpg;see|
 http://www.liniverse.com/me.jpg;me|
 http://www.liniverse.com/now.jpg;now|

 The issue is when the page loads, the alt text is displayed in the
 carousel
 rather than the images. Is this an issue familiar to anyone? The
 lightbox
 effect still works, but without the images.

 TIA

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


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

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


Re: [jQuery] jcarousel issue

2007-03-05 Thread Indigo
On Monday 05 March 2007 14:35, Marshall Salinger wrote:
 Can you post some sample code? It sounds like the paths to your images
 is wrong.

 -Marshall

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of Indigo
 Sent: Monday, March 05, 2007 12:23 PM
 To: discuss@jquery.com
 Subject: [jQuery] jcarousel issue


 I am trying to implement a jcarousel element on a page that is not yet
 public.
 The example I'm using is the one with dynamic content loading via ajax -

 http://sorgalla.com/projects/jcarousel/example_dynamic_ajax.html .

 My example_dynamic_ajax.txt file looks like this:

 http://www.liniverse.com/see.jpg;see|
 http://www.liniverse.com/me.jpg;me|
 http://www.liniverse.com/now.jpg;now|

 The issue is when the page loads, the alt text is displayed in the
 carousel
 rather than the images. Is this an issue familiar to anyone? The
 lightbox
 effect still works, but without the images.

 TIA

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


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

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