Hi,
The version is 1.1.3.
This is my view:
<div id="editme">blabla</div>
<?= $ajax->editor('editme', '/admin/update_stocks') ?>
The controller function is simple.
function update_stocks( )
{
$this->set('value', $_POST['value']);
$this->layout = 'ajax';
}
The response body is simpler (update_stocks.thtml):
<?php
print $value;
?>
I highlight the div and click it. It becomes form. Change it. Saved
it. Okay. Nothing's wrong.
Here comes the problem. I click it again. The value on the form
becomes:
value <!-- 0.2732s -->
So where does <!-- 0.2732s --> come from? The first time I click the
div, there is no garbage number. But after second times and so on, the
garbage number will show up.
Thank you.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---