Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Perfectly valid website crashing IE

Reply
Thread Tools

Perfectly valid website crashing IE

 
 
Richard
Guest
Posts: n/a
 
      03-02-2005
On Wed, 2 Mar 2005 19:38:36 +1300 Nik Coughin wrote:

> Could anyone using IE 6 please test this site for me, and let me know if
> it generates an error?
>
> http://www.masterpiece.co.nz/index.php
>
> I have just installed the site onto the client's webserver. They are
> running IIS. The HTML and CSS both validate.
>
> When I try to access the site from any of the computers on their network
> IE 6 crashes with this:
>
> Microsoft Visual C++ Runtime Library
> Runtime Error!
> Program C:\Program Files\Internet Explorer\IEXPLORE.EXE
>
> R 6025
> - pure virtual function call
>
> This happens on both XP and 2K. It only happens with this page on this
> site. It happens about 75% of the time. Doesn't happen with any other
> sites to my knowledge, though I only tried 20 or 30. Needless to say it
> doesn't happen with other browsers.
>
> Here's the really weird bit:
>
> None of the other pages on the site generate the error, only index.php and
> whatsNew.php, which is the same thing -- index.php is just include(
> "whatsNew.php" );.
>
> If I take the output from index.php, and paste it into a new document and
> put it on the server, that page doesn't crash IE:
> http://www.masterpiece.co.nz/test3.html
>
> If I embed index.php in an object element inside index.html, and load
> index.html, it doesn't crash:
> http://www.masterpiece.co.nz/index.html
>
> If I navigate to the page from another page, it never crashes. Only if I
> type/paste the url it into the address bar, or click refresh on one of the
> occasions when it hasn't crashed it.
>
> WTF???
>
> I can't get it to crash under IE 6 on any of the machines in my office,
> only on machines on their network. Wide range of hardware.
>
> I wouldn't even have a clue how to start tracking this down, any ideas?
>
> Is it likely to be anything to do with IIS?
>
> Google has been less than helpful. The only other thing I can find to do
> with IE is that streaming audio/video in IE 6 can cause this error, and I
> have neither of these.
>
> Does anyone know of any other newsgroups that might be more suitable for
> asking this in? Of course, if I then follow that up I will be guilty of
> multiposting (sigh).
>
> Please excuse my including alt.html in my crossposting, but I am desperate
> and I know a lot of very smart people lurk there.
>
> --
> "Come to think of it, there are already a million monkeys on a million
> typewriters, and the Usenet is NOTHING like Shakespeare!" - Blair Houghton
> -=-=-=-=-=-=-=-=-=-=-=-
> http://www.nrkn.com/
> -=-=-=-=-=-=-=-=-=-=-=-
>



Why do you have this crap?
<div class="baseW">
<div class="baseE">
<div class="buttonWrap">
<div class="buttonNW">
<div class="buttonNE">
<div class="buttonN">
<img src="./layoutImages/spacer.gif" class="spacer" alt="">
</div>
</div>
</div>

Not only once, but for each button.
All of that for a spacer gif?
To seperate the buttons, use margin. margin-right:20px;


All you need to do is define the layout for each <li> item.

<ul class="navigation">

<li class="current">Home</li>
<li><a href="aboutUs.php">About Us</a></li>
<li><a href="contactUs.php">Contact Us</a></li>
<li><a href="products.php">Products</a></li>
<li><a href="news.php">News</a></li>
<li><a href="links.php">Links</a></li>
</ul>

ul {......}
ul li {......}

BTW, there is no need to "float:left" images as they do it naturally.


www.somestuff.batcave.net

My menu uses css to define each level of ul li.
Which is how I can do the color change so easily.
But what I do is add in a division rather than defining the li item itself.
<ul><li><div class="x">text</div></li></ul>

Rewrite the coding for the menu and begin with a simple ul li arrangement.


 
Reply With Quote
 
 
 
 
Oli Filth
Guest
Posts: n/a
 
      03-02-2005
Richard wrote:
> Why do you have this crap?
> <div class="baseW">
> <div class="baseE">
> <div class="buttonWrap">
> <div class="buttonNW">
> <div class="buttonNE">
> <div class="buttonN">
> <img src="./layoutImages/spacer.gif" class="spacer" alt="">
> </div>
> </div>
> </div>
>
> Not only once, but for each button.
> All of that for a spacer gif?


I suspect it's to achieve the rounded corners of the borders.

> All you need to do is define the layout for each <li> item.
>
> <ul class="navigation">
>
> <li class="current">Home</li>
> <li><a href="aboutUs.php">About Us</a></li>
> <li><a href="contactUs.php">Contact Us</a></li>
> <li><a href="products.php">Products</a></li>
> <li><a href="news.php">News</a></li>
> <li><a href="links.php">Links</a></li>
> </ul>
>


Not if he wants the rounded corner look. It's a hack (cos CSS 2.1
doesn't support rounded corners natively), but it works.

> www.somestuff.batcave.net
>
> But what I do is add in a division rather than defining the li item itself.
> <ul><li><div class="x">text</div></li></ul>
>


Why? What's the point?


--
Oli
 
Reply With Quote
 
 
 
 
Steve Pugh
Guest
Posts: n/a
 
      03-02-2005
"Richard" <Anonymous@127.001> wrote:
>On Wed, 2 Mar 2005 19:38:36 +1300 Nik Coughin wrote:
>
>> Could anyone using IE 6 please test this site for me, and let me know if
>> it generates an error?
>>
>> http://www.masterpiece.co.nz/index.php

>
>Why do you have this crap?
><div class="baseW">
> <div class="baseE">
> <div class="buttonWrap">
> <div class="buttonNW">
> <div class="buttonNE">
> <div class="buttonN">
> <img src="./layoutImages/spacer.gif" class="spacer" alt="">
> </div>
> </div>
> </div>



Until CSS supports multiple background images the only way to create a
box with a fancy border that is flexible both horizontally and
vertically is to use at least four elements in order to set at least
four background images. Nik's chosen to use eight instead of four,
probably to keep the file size of the background images smaller.

>Not only once, but for each button.


No, not for each button. For each group of buttons

>All of that for a spacer gif?


It's possible that the spacer could be elminated.

>To seperate the buttons, use margin. margin-right:20px;


You mean like this:

..navigation li
{
margin-right: 1em;
}

Right there in the CSS that you're slagging off in your ignorant
fashion.

>All you need to do is define the layout for each <li> item.
>
><ul class="navigation">
>
> <li class="current">Home</li>
> <li><a href="aboutUs.php">About Us</a></li>
> <li><a href="contactUs.php">Contact Us</a></li>
> <li><a href="products.php">Products</a></li>
> <li><a href="news.php">News</a></li>
> <li><a href="links.php">Links</a></li>
> </ul>
>
>ul {......}
>ul li {......}


You're telling him to do something that he's already doing. Look at
the styles for .navigation and its children.

How would you draw the the box with the curved corners and drop shadow
around the navigation? It must adjust to varying horizontal and
vertical dimensions beacuse the window width and font size are under
the user's control. Come on.

>BTW, there is no need to "float:left" images as they do it naturally.


Wrong.

>www.somestuff.batcave.net
>
>My menu uses css to define each level of ul li.


So does Nik's.

>Which is how I can do the color change so easily.


What colour change? I've tried mousing over and clicking the "links"
and nothing changes colour? Or are you really boasting about being
able to set different colours for the different levels of nested
lists?

>But what I do is add in a division rather than defining the li item itself.
><ul><li><div class="x">text</div></li></ul>


Why?

>Rewrite the coding for the menu and begin with a simple ul li arrangement.


Nik's menu code is simpler than yours (no extraneous divs) and
produces a more pleasing visual effect. As ever all you're doing is
showing your ignorance.

Steve

--
"Grab reality by the balls and squeeze." - Tempus Thales

Steve Pugh <(E-Mail Removed)> <http://steve.pugh.net/>
 
Reply With Quote
 
BruceB
Guest
Posts: n/a
 
      03-02-2005
"Nik Coughin" <nrkn!no-spam!@woosh.co.nz> wrote in message
news:qbdVd.5853$(E-Mail Removed)...
> Could anyone using IE 6 please test this site for me, and let me know if
> it generates an error?
>
> http://www.masterpiece.co.nz/index.php
>
> I have just installed the site onto the client's webserver. They are
> running IIS. The HTML and CSS both validate.


Works OK for me, although it smells a little like Frontpage..

I use XP Home SR2 with current patches/updates...

You must have some local problem. If it validates, it should be fine on
IE6.

Maybe I'm naive..


 
Reply With Quote
 
Benign Vanilla
Guest
Posts: n/a
 
      03-02-2005

"William Tasso" <(E-Mail Removed)> wrote in message
news(E-Mail Removed)...
<snip>
> btw: 'About us' <http://www.masterpiece.co.nz/aboutUs.php> splendid
> alternative to the usual even if the 'office manager' does look a little
> scary.


Melissa's description sounds like a singles ad.


--
BV
Webporgmaster of iheartmypond.com
http://www.iheartmypond.com
I'll be leaning on the bus stop post.



 
Reply With Quote
 
GreyWyvern
Guest
Posts: n/a
 
      03-02-2005
And lo, Benign Vanilla didst speak in alt.html,alt.www.webmaster:

> "William Tasso" <(E-Mail Removed)> wrote in message
>>
>> 'About us' <http://www.masterpiece.co.nz/aboutUs.php>

>
> Melissa's description sounds like a singles ad.


Maybe she needs all the help she can get? O_o

Grey
 
Reply With Quote
 
n|ck
Guest
Posts: n/a
 
      03-02-2005
Richard wrote:
> <ul><li><div class="x">text</div></li></ul>


Isn't that invalid? I didn't think you could put a <div> inside a <li>...
Why don't you just use a <span> instead?
 
Reply With Quote
 
GreyWyvern
Guest
Posts: n/a
 
      03-02-2005
And lo, n|ck didst speak in
alt.html,alt.www.webmaster,microsoft.public.internetexplorer:

> Richard wrote:
>> <ul><li><div class="x">text</div></li></ul>

>
> Isn't that invalid? I didn't think you could put a <div> inside a <li>...
> Why don't you just use a <span> instead?


<div>'s inside <li> tags are perfectly valid. However, in this case the
use of <div> as a container for everything within the <li> is totally
superfluous.

The above snippet should be simplified by removing the <div> entirely and
applying the class to the <li>.

Grey
 
Reply With Quote
 
nojunk@this_address.com (Mike Pearson
Guest
Posts: n/a
 
      03-02-2005
Nik Coughin <nrkn!no-spam!@woosh.co.nz> wrote:

> Could anyone using IE 6 please test this site for me, and let me know if it
> generates an error?
>
> http://www.masterpiece.co.nz/index.php
>
> I have just installed the site onto the client's webserver. They are
> running IIS. The HTML and CSS both validate.
>


I see several instances of "<br />", which iCab flags as a problem.
Could it be those? there are several of them, down in the "about us"
section near line #90.


--
Mike
NAR #70953 - Sr/HPR Level-1 ~ BEMRC - NAR Section #627
NO Junk Email, please! Real email to: amphoto [at] blarg [dot] net.
<WANTED: Experienced Kamikaze Pilot>
 
Reply With Quote
 
Nik Coughin
Guest
Posts: n/a
 
      03-02-2005
Mike Pearson <see .sig> wrote:
> Nik Coughin <nrkn!no-spam!@woosh.co.nz> wrote:
>
>> Could anyone using IE 6 please test this site for me, and let me
>> know if it generates an error?
>>
>> http://www.masterpiece.co.nz/index.php
>>
>> I have just installed the site onto the client's webserver. They are
>> running IIS. The HTML and CSS both validate.
>>

>
> I see several instances of "<br />", which iCab flags as a problem.
> Could it be those? there are several of them, down in the "about us"
> section near line #90.


Ah yes, they are being inserted by php's nl2br function. It's a simple
enough function, I'll write my own function to use <br> instead and see if
that makes any difference. My personal opinion is that it should make no
difference whatsoever (it validates) but you could be right, IE is indeed a
fickle beast. Thanks.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to rotate image so that image is perfectly level bucky3 Digital Photography 11 07-15-2009 08:59 AM
Suggest USB to RS232 that works perfectly Tomás Ó hÉilidhe C Programming 7 06-13-2008 10:39 AM
Will ASP.NET 1.1 application work perfectly on .Net Framework 2.0 DNB ASP .Net 4 01-10-2008 06:33 PM
Wired network using ICS works perfectly, wireless does not Rich Wireless Networking 2 12-07-2005 11:22 PM
Can HTML be translated to XHTML perfectly?! mike Java 13 10-09-2004 05:49 PM



Advertisments