The #1 Javascript Pop Up / Lightbox made by Paul Engel

Hi Paul,

I have tried using your TupUp which seems to work very well. However, I have tried using it with a CMS system where the images are being stored in an underlying database and exposed through a handler with the file extension of .ashx. For instance, suppose that I upload two files to my CMS system, Img1.jpg and Img1_thumb.jpg into a library called Lightbox, then to access these files from the root I would use the following:

Libraries/Lightbox/Img1.ashx
Libraries/Lightbox/Img1_thumb.ashx

Now this works as the images render nicely in the browser. However, when I use your plug-in library with the following:

<a href="Libraries/Lightbox/Img1.ashx"></a>

Instead of rendering the larger image (Img1.jpg) in the lightbox display area, it renders the raw bytes, i.e. non-printable characters. I have checked that the underlying MIME types (e.g. image/jpeg) are correct, and they are, the browser rending the images kind of backs this up too.

As attractive as the output is, it’s not really what I was expecting. Is it possible that the library is working with the file extension rather than the MIME types?

Cheers,

Kaine

P.S. – Below is an example of some of the data being rendered (I hope it comes out OK):

???1=gJeN w*EN?4]?FYw`xvJ??WGo]?KbO?)?q?!??R?H??V?x?I^??L??-w$??OJ?cbU???3 K<*^?Tf?Ljk?-?a?\?y?U$[n?h?nM?y?&P?N?q?I<?~r?7?{y??kF?U?QX?H?d??}?!?JyqOK??mWmE!IRM? ?wV. ??;B?Ix?:? r?^ +?5?vgO$??`?Tj)e?H?)aM-I?Z?#,?JW?=b?M??}??½?L?l?-??;R?:?~?oA?[ ?/??[?H?b?fY[?U?4WN??}C??w?,?#?A-?lu?<QJJ?8J?m).=?3p?TG{V’yj_?ki?B{pm??%E]UTn’3?lmZ??D?6?’$?}dOd:??b??W?QUz:,(?N?e;??Y,&?il&x????K?Z?N<>?x?N?OFj?s%?t? GN?<?<?y??dmU??:db??T?MB7?~M^jl?vt,F?;N?c?3?r,H1u/5 )?)P?76~Ho?-N}`AIB@I$V?e?5?Q?]??{??sE?>D5?>?Upg#?\???u y`?? @??]k U?’??g\p?R% ?3<9_?zfF9I?;?( ???k?W?GyC}7Q%? l?1sk[??JI?w?X?B??SQrn9?G6?O 6?% ?$ ?`?k?{?z?_2?