I think you are running into the "same-origin-issue" ... most browsers only allow ajax-requests so the same domain. Check out this post http://www.petefreitag.com/item/703.cfm
With iframes you can post data freely to any other domain. I'd just like to mention here, that if you want to post uploaded files, you'll also need an iframe form since you can't upload files via ajax calls On 18 Sep., 09:12, 浪漫様 <[email protected]> wrote: > hello all, > i had been successful on sending forms via ajax on a view and updating > some divs instead of reloading the page without much problem, however, > when the form is located on a facebook-like ajax pop-up div, the page > is always reloaded on submission... and that's not what i expected... > i found a solution that is to place an iFrame with the ajax form > inside the ajax window... however, i would like to be able to do it > without iFrames... just like facebook or other sites does. > > do somebody know any way to accomplish that? all examples, codes, > etc... i had been trying or finding online ( even using JQuery plug- > ins like Boxy, or doing it myself with same result ) has the same > behavior... so i can not do data validation on ajax div-window's forms > or just simply send a 'whatever action done' message after submission. > > thanks in advance. > > Rohman --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
