Skip to main content

Bug Tracker

Side navigation

#6936 closed bug (worksforme)

Opened August 24, 2010 09:52AM UTC

Closed October 15, 2010 02:24AM UTC


Reported by: Alize Owned by:
Priority: low Milestone: 1.4.3
Component: ajax Version: 1.4.2
Keywords: ajax, ie7, 1.4.2, get Cc:
Blocked by: Blocking:

IE7 returns an error when doing an AJAX call for the first time, refreshing fixes it.

To test, browse to one page, then browse to page with AJAX call on it.

Code in body:

<script type="text/javascript">

$.get('test.php', function(data) {




1.4.2 doesn't pop up with 'test' on first page load, refresh and it does, 1.3.2 works as it should.

Attachments (1)
  • test.html (0.5 KB) - added by Alize August 24, 2010 09:53AM UTC.

    This code will not work on IE7 on FIRST page load, subsequent refreshes will work

Change History (2)

Changed August 26, 2010 12:42AM UTC by dmethvin comment:1

The $.ajax call occurs before document.ready(). That may have something to do with it. It should work afaik.

Changed October 15, 2010 02:24AM UTC by addyosmani comment:2

keywords: ajax, ie7, 1.4.2ajax, ie7, 1.4.2, get
priority: → low
resolution: → worksforme
status: newclosed

When called within $(document).ready() this is working fine in IE7, 8 and 9. As dmethvin originally stated the error you were receiving is most likely due to $.ajax/$.get being called before the document had finished fully loading.