walther, thanks for the reply... but i guess you didn't read well my
post neither...
I'm able to send the form with ajax ( also using AjaxForm ) from a
single view without any problem... the problem comes when you try to
do it from a facebook style div-window that pops up...
imagine i am reading a post and i want to send the comment with an
ajax form... yes... that works without any problem, the form is
already located on the main ( post ) view, and form is sent and
comments div is updated... no problem.
now imagine you are building a facebook-alike social networking, and
when clicking on a user's 'send message to xxx' link i want to open a
pop-up ajax window to send message to him... but not from the main
view's form... from a form located on a div appearing on screen ( i
guess you are familliar with facebook or other sites that do that )...
then the form is sent, but the page is reloaded while what i want is
to refresh the ajax-window div. ( that's the problem )
thanks

Rohman

On Sep 18, 4:49 pm, Walther <[email protected]> wrote:
> Take a look at the AjaxForm plugin for jQuery. You need to submit the
> form using AJAX as well.
>
> On Sep 18, 10:15 am, 浪漫様 <[email protected]> wrote:
>
> > i don't think that is the problem... facebook can do it without
> > iFrames and works perfectly no matter what browser.
> > moreover... i'm talking about same domain's forms... nothing to do
> > with external domains.
> > if i'm building a facebook-alike social networking, and when clicking
> > on a user's link i want to open a pop-up ajax window to send message
> > to him... where is the cross-domain issue?
> > thanks for the reply : ) just i think you confuse the topic
>
> > Rohman
>
> > On Sep 18, 3:50 pm, wirtsi <[email protected]> wrote:
>
> > > I think you are running into the "same-origin-issue" ... most browsers
> > > only allow ajax-requests so the same domain. Check out this 
> > > posthttp://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
-~----------~----~----~----~------~----~------~--~---

Reply via email to