Side navigation
Ticket #5919: jquerytest.html
File jquerytest.html, 0.7 KB (added by Lynn, January 24, 2010 02:12PM UTC)
Minimal Reproducer
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>jQuery AJAX Test</title>
<script type="text/javascript" src="jquery-1.4.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
$.ajax({
url: 'nowhere',
dataType: 'json',
// Callback of error() delivers DOMWindow
// as a this pointer.
error: function(xhr, status, error)
{
alert('"this" of AJAX callback error() points to an "'+this+' - without setting a context before.');
}
});
});
</script>
</head>
<body>
</body>
</html>
Download in other formats:
Original Format
File jquerytest.html, 0.7 KB (added by Lynn, January 24, 2010 02:12PM UTC)
Minimal Reproducer
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>jQuery AJAX Test</title>
<script type="text/javascript" src="jquery-1.4.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
$.ajax({
url: 'nowhere',
dataType: 'json',
// Callback of error() delivers DOMWindow
// as a this pointer.
error: function(xhr, status, error)
{
alert('"this" of AJAX callback error() points to an "'+this+' - without setting a context before.');
}
});
});
</script>
</head>
<body>
</body>
</html>