Skip to main content

Bug Tracker

Side navigation

Ticket #1557: jquery-ajax.html


File jquery-ajax.html, 0.4 KB (added by ted.mielczarek, August 31, 2007 12:26AM UTC)

try to use $.get for cross-site-XHR

<html><head><title>jquery ajax test</title>
<script type="application/javascript" src="http://code.jquery.com/nightlies/jquery-nightly.pack.js"></script>
<script type="application/javascript">
$(document).ready(function() {
  $.get('http://tinderbox.mozilla.org/showbuilds.cgi?tree=Firefox&json=1',
  function() {
    $('#ok').text('PASS');
  });
}
);
</script>
</head>
<body><p id="ok">FAIL</p></body>
</html>

Download in other formats:

Original Format