Unless you are from the same domain http://www.domain.com, you can not
do cross domain calls with AJAX, with the exception being JSONP calls.

On Jun 25, 4:26 am, "Cesar Sanz" <the.email.tr...@gmail.com> wrote:
> I can't see the reason to not
>
> ----- Original Message -----
> From: "gigamike" <mikpogi...@gmail.com>
> To: "jQuery (English)" <jquery-en@googlegroups.com>
> Sent: Wednesday, June 24, 2009 1:58 AM
> Subject: [jQuery] jquery ajax
>
> > Hi,
>
> > Is it possible to call a http url for ajax query i.e.
>
> > $(document).ready(function(){
> > $.ajax({
> >    type: "GET",
> >    url: "http://www.domain.com/mypage.php";,
> >    data: "site_id=" + site_id,
> >    success: function(tags){
> > $("<div id=\"popdiv\">" + tags + "</div>").appendTo("body");
> >    }
> > });
> > });
>
> > Seems like url: "http://www.domain.com/mypage.php";, is not allowed coz
> > it doesnt echo/display any coming fromhttp://www.domain.com/mypage.php
>
> > Thanks in advance,
>
> > Mike

Reply via email to