Javascript within AJAX fails to load in IE

Posted on 2012-08-23
Last Modified: 2012-10-02
I have an IE 7 and IE 8 bug that  I am having a difficult time fixing. It is only happening on a specific page of a site, see the link below. On this page I run an ajax query to generate the content of the search results and create write and execute the javascript for a Google Map Integration. Also below are the errors.

I have basically narrowed it down to the Google Maps, and I think it may be happening when the map is initialized. Please any help is greatly appreciated.  

<script type="text/javascript">	
		document.body.onload = initialize();

Open in new window

Error from IE 8
SCRIPT16385: Not implemented
jquery.min.js, line 2 character 11496
SCRIPT257: Could not complete the operation due to error 80020101.
jquery.min.js, line 2 character 11496

It could also be related to this jquery bug.
Question by:meno19
    LVL 18

    Expert Comment

    by:Gary Davis
    I used IE9 and it did not get an error. F12 to get to the developer tools and started the script debugger and switched to IE8 Mode in the pulldown - refereshed the page and saw this error:

    SCRIPT1002: Syntax error
    selectivizr-min.js, line 1 character 1

    There were 2 selectivizr's - one had code and one was empty. Seems to be FaceBook code.

    I am not sure why it failed or what's going on. Switching to IE7 showed an error similar to yours above, tho not jquery.min.js.

    LVL 1

    Author Comment

    Try it again Gary. I was restoring some files you might have caught me in the middle of it. I am using the same method of you to look at the errors in the developer tools.
    LVL 49

    Expert Comment

    by:Julian Hansen
    LVL 1

    Author Comment

    I've tried several variations of this. I'll need to further work on it later this evening. Was just hoping someone had a similar issue.
    LVL 1

    Accepted Solution

    Ends up the error was happening with when I was calling On.Page.Load event. By calling the function initialize() inline and not with the On.Page.Load event
    LVL 1

    Author Closing Comment

    No replies were able to answer the question.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
    SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
    In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now