On Sunday 15 May 2011 12:03:32 emile1986 wrote: > Hello all, > > I have created a zend_form for adding new pages to my cms system / website > and when the page is successfully created a message that the page is > created will appear under the submit button. > > Now i recently discovered facebox and i'm wondering if it's possible to > display that message within a facebox window when i hit the submit button > and when the page is created? > > > Regards, > Emile
Hi Emile, You should enhance your pages with javascript. Place an event trigger on the form submit and post the result with an XmlHttpRequest. Fetch the result (add the ajax context switch to your server side controller action!) and display the result in the box. Keep in mind you also have to display something when the form was not valid, because otherwise javascript users don't get an error message anymore ([1]). Regards, Jurian [1] http://juriansluiman.nl/en/article/107/zend_form-style-errors-after-ajax- post -- Jurian Sluiman Soflomo - http://soflomo.com -- List: [email protected] Info: http://framework.zend.com/archives Unsubscribe: [email protected]
