3 Replies - 302 Views - Last Post: 09 November 2011 - 03:37 AM

#1 menukadevinda  Icon User is offline

  • D.I.C Regular

Reputation: -7
  • View blog
  • Posts: 470
  • Joined: 14-April 11

mysite is crashed in IE 8

Posted 08 November 2011 - 04:29 AM

hi all,

in my site register page is crash in IE 8 and finally I have to restart the browser . If u have IE8 u can experience it ur self.

here is the link to the site
[url]http://oldtimerslost.com/otlTest/en/home[/url]

this page is ok in other broswers but only for IE8 and new version.


if any body have idea plz let me know.

thx in advance...
Is This A Good Question/Topic? 0
  • +

Replies To: mysite is crashed in IE 8

#2 Atli  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3718
  • View blog
  • Posts: 5,989
  • Joined: 08-June 10

Re: mysite is crashed in IE 8

Posted 08 November 2011 - 05:23 AM

Hey.

All your pages have these lines: (Starting at line #14)
    <script type="text/javascript">
    $(function() {
       $('#gallery1 a').lightBox();
		 $('#gallery2 a').lightBox();
		  $('#gallery3 a').lightBox();
    });
    </script>


However I can't find any of those IDs in your code.

For some reason the "Register" page is showing an error there, but the others aren't. IE8 apparently freaks out and crashes when this happens. (Tested on XP)

I recommend you try to just remove those lines. They don't appear to do anything in any case. (Unless I'm missing something.)


Also, if you are planning on using XHTML you shouldn't put Javascript in the XML markup. If the browsers were actually rendering this as proper XHTML you would no doubt get a long stream of parse errors. Use external Javascript files or CDATA.

Or just use a HTML4 doctype instead. Unless you actually plan on sending a proper XHTML content-type, don't use a XHTML doctype. You may as well use HTML4, seeing as the browsers fall back on HTML4 when you pass the "text/html" content-type regardless of your doctype.
Was This Post Helpful? 0
  • +
  • -

#3 menukadevinda  Icon User is offline

  • D.I.C Regular

Reputation: -7
  • View blog
  • Posts: 470
  • Joined: 14-April 11

Re: mysite is crashed in IE 8

Posted 08 November 2011 - 09:17 PM

thanks for ur descriptive answere,,
 <script type="text/javascript">
 $(function() {
    $('#gallery1 a').lightBox();
$('#gallery2 a').lightBox();
 $('#gallery3 a').lightBox();
 });
 </script>




is in header of the site , it is not used in this page but in other pages.

I comment the above code and run but stil get the same problem.'

plz help

thx in advance
Was This Post Helpful? 0
  • +
  • -

#4 menukadevinda  Icon User is offline

  • D.I.C Regular

Reputation: -7
  • View blog
  • Posts: 470
  • Joined: 14-April 11

Re: mysite is crashed in IE 8

Posted 09 November 2011 - 03:37 AM

hi all, I could fix the problem . problem was not in javascript or DTD but the syntax.

this page was full of incomplete syntax such as tables were not closed properly.

after adjusting the syntax I could fix it.....

and I learn many things about CDATA and DTD



thx all

This post has been edited by menukadevinda: 09 November 2011 - 03:41 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1