I've tried just about everything :-/ ...well and truly stumped. On Sep 4, 10:03 pm, francky06l <[EMAIL PROTECTED]> wrote: > I had a similar problem once, caused by many "blanks" and also some > trailing space after the ?> into the element. > Have you tried to simplify the element (for example just <h1>Hello</ > h1>) ? > > On Sep 4, 7:09 pm, Richard <[EMAIL PROTECTED]> wrote: > > > Hi, thanks for your reply. The confirmation page is a seperate file > > and the thank you message is updated within the start and end divs. > > However renderElement does not work -- if I use PHPs native include > > the data is added but causes additional problems. > > > On Sep 4, 9:37 am, francky06l <[EMAIL PROTECTED]> wrote: > > > > Well your ajax submit updates the "contact_form", but your element is > > > outside thediv/ divEnd. Try moving the divEnd after therenderElement. > > > > On Sep 4, 6:18 am, Richard <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > > No I amnotusing 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 isnot > > > > 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 theupdateddivsection > > > > > > (confirmation page) callsrenderElement-- but for some reason does > > > > > >notwork. 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 -~----------~----~----~----~------~----~------~--~---