Hi guys,

First I would like to thanks all the help from you I really appreciate
it.

I know I can retrieve data from a remote site using method provided by
gadget API e.g.makeGETRequest(url)

However,I try to use Jquery with Ajax as following to do the same
functionality and it shows me error such as "Permission denied"

I use something like this: jQuery.ajax({
type: "GET",
url:"https://snoopy.ceesharp.com";,
success: function(msg){
alert( "Success!\n\n " + msg );

a friend in this forum suggests as following:
 This will fail because you are getting denied by the same origin
policy.  Gadgets are served from *.gmodules.com while you're trying to
retrieve from ceesharp.com.

I just want to confirm that  there is no way to use jQuery.ajax with
url like what I did to get data from remote site. And I have to use
method e.g. makeGETRequest(url)from gadget API to do the same
functionality.

Best regards,

james














<html>
<head>
<script type="text/javascript" src="http://www.google.com/jsapi";></
script>
<script>
google.load("jquery", "1.3.2");
</script>
</head>
<body>
jQuery Test
<script>
//var url = gadgets.io.getProxyUrl("https://snoopy.ceesharp.com";);

jQuery.ajax({
type: "GET",
url:"https://snoopy.ceesharp.com";,
success: function(msg){
alert( "Success!\n\n " + msg );

}
});
</script>
</body>
</html>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Gadgets-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to