I googled after jsonp example and this article turned up, which from what I read, seems to explain the whole concept in a very understanding way. Give it a try: http://www.ibm.com/developerworks/library/wa-aj-jsonp1/
Enjoy, John On 27 Jan., 19:04, thomaus <[email protected]> wrote: > I agree with you John and this makes sense. The problem is that I > absolutely don't want to put any PHP in the requesting domain. > > It seems that the only remaining solution is to do JSON-P query. Is > there a simple way to do a JSON-P query and to update a <div> with a > full content of a Cake view? > > On Jan 27, 3:40 pm, John Andersen <[email protected]> wrote: > > > As far as I could understand the second article, you have to place the > > proxy script in the "requesting" domain, not the CakePHP app domain. > > The proxy script will then request the CakePHP app domain for the > > information, receive it and pass it back to your JQuery processor. > > Enjoy, > > John > > > On Jan 27, 4:14 pm, thomaus <[email protected]> wrote: > > > > Hi there, > > > > I need to do a JQuery ajax request to an action of my CakePHP app but > > > with the Javascript in a different domain than the Cake app's one. > > > > After reading this very good article > > > :http://developer.yahoo.com/javascript/howto-proxy.html > > > I created a proxy PHP file following these > > > explanations:http://stackoverflow.com/questions/660949/how-to-implement-a-cross-do... > > > > Well, if I put the proxy in /app/webroot (as explained in the second > > > article) it doesn't work, which seems logical : why could a javascript > > > call a php script in /app/webroot/ if he can't connect an action? It's > > > the same problem. > > > > So my question is : where should I put my PHP proxy script so that it > > > works fine??? > > > > I read many articles on this subject but they all say the same and > > > they don't answer my question. > > > > Thanks in advance Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" 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/cake-php?hl=en
