最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - IE7 Internet Explorer cannot open the internet site, operation aborted - Stack Overflow

programmeradmin4浏览0评论

when i test this page .aspx?catID=119 im getting the above error. to replicate this issue visit the above page in ie7 and you will get the prompt. i did some search but couldnt find a way to resolve this issue. any help is apprecated.

THanks, Aneef

when i test this page http://www.catalogues4u..au/ViewCategory.aspx?catID=119 im getting the above error. to replicate this issue visit the above page in ie7 and you will get the prompt. i did some search but couldnt find a way to resolve this issue. any help is apprecated.

THanks, Aneef

Share Improve this question edited Jan 14, 2014 at 8:08 Kara 6,22616 gold badges53 silver badges58 bronze badges asked Jun 10, 2010 at 7:37 AneefAneef 3,72910 gold badges48 silver badges68 bronze badges 3
  • I tried with IE8 in patibility mode without errors. – mamoo Commented Jun 10, 2010 at 7:43
  • tested in IE6, no problem, too. – oezi Commented Jun 10, 2010 at 7:57
  • Works for me with IE6 and IE7 in IETester. – Pekka Commented Jun 10, 2010 at 7:57
Add a ment  | 

3 Answers 3

Reset to default 7

This usually occurs when you try to change the DOM of an element that hasn't been pletely parsed yet. For example, this code will trigger an "Operation Aborted" error because the script tries to modify the div that's still parsing:

<div id="a">
    <script>
        document.getElementById('a').appendChild(document.createElement('div'));
    </script>
</div>

To fix this potential problem, move scripts outside and after the code of the element you will be trying to work with.

Try moving all your JavaScript to the end of the page i.e. just before the closing </body> tag to see if that helps. I think that sometimes that error is caused by some JavaScript trying to operate on an element before that element has fully loaded.

I'm getting all sorts of rendering engine errors in IE7 here, when you set a DOCTYPE it should be accurate for your markup, currently you have this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3/TR/xhtml1/DTD/xhtml1-strict.dtd"> 

However your page is not at all XHTML Strict pliant, and not really XHTML Transitional pliant either. You should pick the DOCTYPE you're after then fix the validation errors that remain, I'm not saying it has to be 100% valid to render, I'm just saying that's the wall I currently hit viewing your page, there may be another once you fix this...but that is unlikely since it works in other browsers.

Invalid HTML will give you all sorts of weird behavior, it's best to fix them if for no other reason than ruling out the invalid HTML as the cause. A browser maker is free to assume the HTML is valid, and do things based on that (using the same ID multiple times is the most mon example, it's a hash table in most browsers)...if it's not valid and that screws something up, well the browser is also free to not care :)

发布评论

评论列表(0)

  1. 暂无评论