I'm new in CakePHP
I have a question.
Can anyone make me an example of use of $ajax->submit?
My code is:
<!-- modify.thtml -->
<form>
<p>
Input:<?php echo $html->input('input/input',
array('size'=> '60','value'=>0))?>
</p>
<?php
$options=array( 'update' => 'viewadmin',
'url' => '/controlName/
actionName' );
echo $ajax->submit('Save', $options);
?>
</p>
</form>
</div>
<div id=viewadmin></div>
When I click on "Save" I don't get anything in the div "viewadmin".
Why?
Many Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---