Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Javascript within AJAX fails to load in IE

Posted on 2012-08-23
6
Medium Priority
?
2,132 Views
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();
   </script>

Open in new window


http://fbf1.staging.wpengine.com/search/


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. http://bugs.jquery.com/ticket/9221
0
Comment
Question by:meno19
  • 4
6 Comments
 
LVL 18

Expert Comment

by:Gary Davis
ID: 38327184
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.

Gary
0
 
LVL 1

Author Comment

by:meno19
ID: 38327198
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.
0
 
LVL 61

Expert Comment

by:Julian Hansen
ID: 38327199
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 1

Author Comment

by:meno19
ID: 38327412
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.
0
 
LVL 1

Accepted Solution

by:
meno19 earned 0 total points
ID: 38346478
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
0
 
LVL 1

Author Closing Comment

by:meno19
ID: 38453742
No replies were able to answer the question.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

564 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