You are here: Re: IE cannot open the Internet site ... Operation aborted « HTML « IT news, forums, messages
Re: IE cannot open the Internet site ... Operation aborted

Posted by Ian Hobson on 11/21/07 14:48

Mika wrote:
> Hello, we understand you guys may be able to help.
>
> We have a page which has been working great for over a year and gets many
> hits. However recently something got changed that we cannot seem to find,
> and now *sometimes* if you refresh the page (generally while it is still
> loading) in IE7, we get the popup window error:
>
> Internet Explorer cannot open the Internet site...
> Operation aborted

I had to disable javascript just to get the page to load into Firefox.

My Advice....

1) Remove ALL javascript.

2) No remove ALL of it - google ads included. ALL means EVERY LAST DAMN
BIT.

3) Fix the HTML - Having three <head>, and three <body> tags is an
abortion! LINK can ONLY go in the header. Your page is such a mess it
can't be described as "tag soup". It a dogs breakfast! Fix.

4) Make sure the html validates under HTML 4 strict doc type. (Yes, that
means CSS for styling, and javascript for target=).

Make sure your page at this stage is usable (plain and dull is 100% fine
- I want usable). If a visitor can't navigate and buy stuff, fix the
application! Your customer won't agree to 5-10% of visitors being unable
to use his site or buy his products.

5)Add CSS to make your page layout as you want, and to style it so it
looks nice. If you have to alter the HTML, revalidate it.

6) If you want to show silly quotes or other dynamic content use a tool
designed for the purpose - PHP, ASP, Perl, Ruby, CGI, SSI or even server
side javascript for heavens sake! That is a SERVER side job! DO it
there! Not in the user's browser!

7) If there is any javascript left, perhaps to make the user interface
more convenient, or less error prone, add it back in. Ensure that NONE
is executed until appropriate by putting it ALL in the header. Trigger
with on-click on on-load events as required.

(Possible exception - inline javascript using document.write, to create
mailto anchors to defeat harvesters.).

Important - don't touch the DOM in in-line javascript.

8) Check your HTML still passes validation. Check your page works on
lots of browsers.

9) Put the Google ads back, inline as given - and realise that your page
will now fail validation.

Don't confuse the vigour of my advice with criticism. The mess has been
created by the templating system that has not helped you.

And consider using a version control system. That way when you back out
a change, you absolutely know it is 100% removed.
It would have saved all of this hassle.

Regards

Ian

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация