Monday, October 5, 2009

Re: Cross-site element with AJAX ? ? ? How can I ? ? ?

The CakePHP is already installed into the root of my domain !

And the request that I see is this ! ! !

Ok take a look of real responce !

my site run into my computer in Virtual Host under this domain :

http://www.rea.dch/

AJAX requests from Firebug when I type my domain like this :

http://www.rea.dch/

AJAX Requests :

http://www.rea.dch/Countries/getCountries
http://www.rea.dch/Cities/getCities/cntr:7
http://www.rea.dch/Propertytypes/getPropertytypes/
http://www.rea.dch/Prmas/getPrmas/
http://www.rea.dch/Areas/getAreas/cntr:7/city:7

And the AJAX Requests when I use another action :

http://www.rea.dch/Countries/getCountries
http://www.rea.dch/Properties/Cities/getCities/cntr:7
http://www.rea.dch/Properties/Propertytypes/getPropertytypes/
http://www.rea.dch/Properties/Prmas/getPrmas/
http://www.rea.dch/Properties/Areas/getAreas/cntr:7/city:undefined

And inside the JQuery the AJAX calls are the following :

$.ajax(
{
type: "GET",
url: '/Countries/getCountries',
success: function(xml)
{
{ XML Data Manipulation Code }
},
complete: function()
{
$.ajax(
{
type: "GET",
url: 'Cities/getCities/cntr:'+cntrID,
success: function(xml)
{
{ XML Manipulation Code }
},
complete: function()
{
$.ajax(
{
type: "GET",
url: 'Areas/getAreas/cntr:'+cntrID+'/city:'+cityID,
success: function(xml)
{
{ XML Manipulation Code }
}
}
}
}

$.ajax(
{
type: "GET",
url: 'Propertytypes/getPropertytypes/',
success: function(xml)
{
{ XML Manipulation Code }
}
}

$.ajax(
{
type: "GET",
url: 'Prmas/getPrmas/',
success: function(xml)
{
{ XML Manipulatino Code }
}
}

}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: