Skip to main content

Bug Tracker

Side navigation

Ticket #6123: ajax_test_ie.html

File ajax_test_ie.html, 1.1 KB (added by chris.raethke, February 19, 2010 04:46AM UTC)

example of failure under ie

<!DOCTYPE html>
<html lang="en">
	<title>$.ajax IE Test</title>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<!-- script type="text/javascript" src=""></script -->
	<script type="text/javascript" src=""></script>
	<!-- script type="text/javascript" src=""></script -->
	<script type="text/javascript">
		function test() {
			// inside jquery, hitting the native xhr.send(...) method will cause xhr to become null

			// fails with all types of ajax calls
			var xhr = $.ajax();
			//var xhr = $.get("ajax_test_ie.html");
			//var xhr = $.getJSON("file.json");
			//var xhr = $.post("ajax_test_ie.html");

			// in firefox you will get nice alert message "[object XMLHttpRequest]"
			// in internet explorer 7 you will get message "null"
	<input type="button" onclick="test();" value="Test" />
	<div id="container"></div>

Download in other formats:

Original Format