PDA

View Full Version : Frog JS Iexplore bug



nathanael
11-16-2010, 10:24 PM
1) Script Title: Frog JS

2) Script URL (on DD):

http://www.dynamicdrive.com/dynamicindex4/frogjs/index.htm

3) Describe problem:

Im using Frog JS for my gallery, it works fine with other browsers but this is the error i get when i load it up on Iexplore, what do i need to do to fix it?


Webpage error details

Message: 'getElementsByTagName(...).0' is null or not an object
Line: 51
Char: 4
Code: 0
URI: http://aunepal.co.uk/index.php?s=gallery

Thanks

jscheuer1
11-24-2010, 02:40 AM
This script has been known to have problems at times in IE 8. However, since the problem you're having doesn't appear to relate to that, I've moved this from the bug section to the help section.

First, get rid of this MS Office 'garbage' (from the page's source code):


<!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning/> <w:ValidateAgainstSchemas/> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> <w:DontGrowAutofit/> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} p {mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:0cm; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} --> <!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--><!--[if gte mso 9]><xml> <o:shapedefaults v:ext="edit" spidmax="1026"/> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext="edit"> <o:idmap v:ext="edit" data="1"/> </o:shapelayout></xml><![endif]-->

Next, there's a typo here (also from the page's source code):


<a href="http://aunepal.co.uk/images/25.jpg" title="Woolly glove"
<img src="http://aunepal.co.uk/images/25t.jpg" alt="High Quality Hand Made Woolly Gloves.</a>

There's no closing quote, so everything after that can be considered invalid. Firefox error corrects for this. IE doesn't.

It should be:


<a href="http://aunepal.co.uk/images/25.jpg" title="Woolly glove"
<img src="http://aunepal.co.uk/images/25t.jpg" alt="High Quality Hand Made Woolly Gloves."</a>

There could also be other problem(s). But these two things need to be fixed first.