1) Script Title: Image Thumbnail Viewer II
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...thumbnail2.htm
3) Describe problem:
is it possible to change the length of the title that is showed beneath the enlarged image?
1) Script Title: Image Thumbnail Viewer II
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...thumbnail2.htm
3) Describe problem:
is it possible to change the length of the title that is showed beneath the enlarged image?
It can be as long as you want it to be.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
I think he wants to know how..
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
i see,but for some reason it cut the text string
ok thank you all for your time and the great script,i forgot that the string in the db can contain double quotes,thats the reason.
thanks again.
Last edited by genia; 01-27-2008 at 12:02 PM.
Ugh, can it contain single quotes or an apostrophe, basically this character:
'
If not, you could delimit with that:
Otherwise, you would need to escape whatever you use as a delimiter. The most convenient way of doing this that I can think of would be on the server side, like converting allCode:title='Some title'"to\"before passing the value for title off to the page.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
your solution is not right because the problem was that in the html code the text string was with " so it looked like:
title="text"dsfkjkljlsf"hsdfjkhdsfw'"
and as result it showed only text.
to solve this i made the string to output the spiceal chars as codes like: > and stuff like this so that the html parser wont be confused with the original quotes
Ooops, I confused a javascript string with an HTML one. I'm just glad you found a way that works for you.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
thanks anyway for the help and for everything you do here.
Bookmarks