| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
|---|
| 2 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
|---|
| 3 | <head> |
|---|
| 4 | <title>3235 Test Case</title> |
|---|
| 5 | <script type="text/javascript" src="jquery.js"></script> |
|---|
| 6 | <script type="text/javascript"> |
|---|
| 7 | $(document).ready(function() { |
|---|
| 8 | $.ajax( { type: "GET", dataType: 'html', url: 'http://jquery.com', error: function() { alert('Got to error callback.'); } } ); |
|---|
| 9 | }); |
|---|
| 10 | </script> |
|---|
| 11 | |
|---|
| 12 | </head> |
|---|
| 13 | |
|---|
| 14 | <body> |
|---|
| 15 | Should alert "Got to error callback." |
|---|
| 16 | </body> |
|---|
| 17 | |
|---|
| 18 | </html> |
|---|