Try the following code for your ajax form. Note the update to
'comments' from 'comment'::
form(null,'post',array(
'update'=>'comments',
'url'=>array(
'controller'=>'comments',
'action'=>'add'
)
)
);
echo $form->i
Hi,
I have the same problem, did anyone found a solution for it?
On Jul 23, 12:24 am, David wrote:
> Hello,
>
> I am trying to work with ajax helper to do a comments form on a test
> blog system.
> I am fairly new...but have managed to pick most things up...but this
> is doing my head in!
>
> O
Where is your html element with attribute id="comment" ?
Use firebug and firefox to inspect XMLHttpRequests.
On Jul 23, 11:05 am, David wrote:
> Yep I have included
>
> link('prototype'); ?>
>
> in the of the default template.
>
> Which produces this in the head =
Yep I have included
link('prototype'); ?>
in the of the default template.
Which produces this in the head =
you called the prototype.js?
--
Eric Silva
On Wed, Jul 22, 2009 at 10:24 PM, David wrote:
>
> Hello,
>
> I am trying to work with ajax helper to do a comments form on a test
> blog system.
> I am fairly new...but have managed to pick most things up...but this
> is doing my head in!
>
> Okay so
Hello,
I am trying to work with ajax helper to do a comments form on a test
blog system.
I am fairly new...but have managed to pick most things up...but this
is doing my head in!
Okay so I show a blog post and people can comment on them so I use
this in the view file:
form(null,'post',array
('u