Hi, No I am not using requestAction. Here is the code: Any help would be gratefully appreciated.
// FORM <?php e($ajax->div('contact_form')); ?> <form method="post" action="<?php e($html->url('/properties/ contact_us'));?>" onsubmit="return false;"> <table cellpadding="10" cellspacing="0"> <tr> <td align="right">Name: </td> <td> <?php e($html->input('Enquire/name'));?> </td> </tr> <tr> <td align="right">Email: </td> <td> <?php e($html->input('Enquire/email'));?> </td> </tr> <tr> <td align="right">Phone (including country code): </td> <td> <?php e($html->input('Enquire/phone')); ?> </td> </tr> <tr> <td align="right">Message: </td> <td> <?php echo $html->textarea('Enquire/message', array('cols'=>'60', 'rows'=>'10')); ?> </td> </tr> <tr> <td></td> <td> </td> </tr> </table> <?php echo $ajax->submit('Submit', array('url' => '/properties/ contact_us', 'update' => 'contact_form'));?> </form> <?php e($ajax->divEnd('contact_form')); ?> // CONTROLLER SCRIPT $this->redirect('/confirmations/contact_us/'.$this->data['Enquire'] ['name'].'/'.$this->data['Enquire']['email']); // CONFIRMATION PAGE e('<tr><td><h1>Thank you for your email. You will be contacted shortly.</h1></td></tr>'); $this->renderElement('newsletter_prompt'); // <-- this code is not included into page On Sep 3, 8:14 pm, francky06l <[EMAIL PROTECTED]> wrote: > Does your element calls a requestAction ? > > On Sep 3, 6:22 am, Richard <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I have an Ajax form that posts some data and the updated div section > > (confirmation page) calls renderElement -- but for some reason does > > not work. Any ideas? > > > Many thanks, Richard --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---