tags:

views:

513

answers:

1

Hi, I have used google map. When i go to link www.xyz.com/view_map.html no problem for firefox but for IE error message is displayed like this (internet explorer cannot open site http://www.xyz.com/view_map.html operation aborted). Is there any solution for this.

Thanks in advance

+2  A: 

This problem occurs because a child container HTML element contains script that tries to modify the parent container element of the child container. The script tries to modify the parent container element by using either the innerHTML method or the appendChild method.

For example, this problem may occur if a DIV element is a child container in a BODY element, and a SCRIPT block in the DIV element tries to modify the BODY element that is a parent container for the DIV element.

To work around this problem, write script blocks that modify only closed containers or that modify only the script's immediate container element. To do this, you can use a placeholder to close the target container, or you can move the script block into the container that you want to modify.

To regenerate this behavior, you can do this -

<html>
    <head>
        <script type="text/javascript">
            function appendToBody() {
                var span = document.createElement('span');
                document.body.appendChild(span);
            }
        </script>
    </head>
    <body>
        <form>
            <script type="text/javascript">
                appendToBody();
            </script>
        </form>
    </body>
</html>

Reference: KB Support Article #927917 & Dealing with IE "Operation Aborted".

Kirtan