cross site ajax problem [SOLVED]
Hi,
I'm new to jquery or ajax, and I have run into a simple problem almost exactly like
this. The topic is marked [SOLVED] but I can't see a solution.
I can use .get or .load to get a page on my server like $('#result').load("helloworld.html"), but failed to get anything back with url starting http://
And I see my request (from firebug) is a OPTION instead of GET... any idea with that?
Can anyone tell me why the code below doesn't work (by alerting success)?
(FYI, What I'm trying to do is to make a ajax call to a dictionary site and display the result.)
Thanks in advance for any help~~
Chris
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Test page</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
$(function() {
$.get("http://www.google.com", function(page)
{
alert("success !!!");
});
});
</script>
</head>
<body>
</body>
</html>