PDA

View Full Version : Resolved Thumbnailviewer2.js ain't working on IE!



commparlimage
01-29-2009, 09:42 PM
Its been almost 2 days that im on that.. I really need help. I've used this code before and it work perfectly on FF and IE. But this time, it doesn't show on IE, but on FF it's working.

Could someone tell me what could be the problem that makes IE unable to display enlarged images?

Here's the page on my site : http://www.asgsoudure.qc.ca/equipements.php, click for "more information" (Plus d'information) and its there that the images aren't displaying. If anybody needs anything else to help me, I can surely provide that.

Thank you, and hoping to have a fast answer.

jscheuer1
01-29-2009, 10:31 PM
Two possible problems. But first please restore the on page credit for the Ultimate Fade-In slideshow:

Your page is in violation of Dynamic Drive's usage terms (http://www.dynamicdrive.com/notice.htm), which, among other things, state that the script credit must appear in the source code of the page(s) using the script. Please reinstate the notice first.

OK, on to the problems with the viewer. It could be one or both of these:

Your image filenames and their href values contain non-standard characters in the UTF-8 content type, change your content type meta tag from:


<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

to:


<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

But I think your server is overriding that and presenting the code in iso-8859-1 or similar anyway. The real problem appears to be (highlighted):


<script type="text/javascript" src="thumbnailviewer2.js" defer="defer">

/***********************************************
* Image Thumbnail Viewer II script- Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/

</script>

The defer attribute is a great shortcut in IE, but when there are other scripts on the page it sometimes causes problems, as it certainly appears to be here. Just get rid of it:


<script type="text/javascript" src="thumbnailviewer2.js">

/***********************************************
* Image Thumbnail Viewer II script- Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/

</script>

Make these two changes (and please reinstate the credit to the other script as mentioned) and you should be fine (tested here in IE 7).

commparlimage
01-30-2009, 01:29 PM
Thank you very much, it worked with the defer="defer" off the tag.

And I putted the license note back in the slideshow script.. sorry for that tho.