You are getting this because Thickbox decides if your link is an image or
not based on the file extension. If all your images are from yimg, you can
fix this with a bit of a hack.

Go into thickbox.js, find the function tb_show(), and these lines:

   var urlString = /\.jpg|\.jpeg|\.png|\.gif|\.bmp/g;
   var urlType = baseURL.toLowerCase().match(urlString);

   if(urlType == '.jpg' || urlType == '.jpeg' || urlType == '.png' ||
urlType == '.gif' || urlType == '.bmp'){//code to show images

Just add a test to find a unique part of your URL string, such as

   var urlString = /\.jpg|\.jpeg|\.png|\.gif|\.bmp|\.yimg/g;
   var urlType = baseURL.toLowerCase().match(urlString);

   if(urlType == '.jpg' || urlType == '.jpeg' || urlType == '.png' ||
urlType == '.gif' || urlType == '.bmp' || urlType == '.yimg'){//code to show
images

Maybe Thickbox will add support for custom extensions down the line.

HTH,
Ted

On Fri, May 2, 2008 at 6:07 PM, Samant <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> Thickbox fails to laod images from a REST Style URL .... has anyone
> faced this before ?
>
> On May 1, 11:59 am, Samant <[EMAIL PROTECTED]> wrote:
> > Hi ,
> >
> > I was trying to use "jCarousel and Thickbox 3 " plugin .
> > From the jCarousel, examples folder - used the special_thickbox.html
> > and replaced the URI to point at REST webservice call image output as
> > shown below instead of
> > static .jpg image links.
> http://re3.yt-thm-a01.yimg.com/image/25/m4/3024464321http://re3.yt-thm-a01.yimg.com/image/25/m4/3022951145
> >
> > The initial thumbnail display works fine but on click of the image ,
> > get a System Error at Line 0. IE error window.
> > Browser is IE 6.
> >
> > Has anyone faced this issue before ? Any resolution ?  Thanks in
> > Advance !
> >
> > Thanks
> > Samant
>



-- 
Ted

Reply via email to