Hi All,

I'm using an AjaxHelper Inplace editor to amend records in a table.
the editor does add the values in my database , but it fails to
display the new value on the inPlace textbox.Is there something wrong
with my view?
Cheers!

<VIEW index.ctp>
<?=$form->text('UrlRewrite.urlTo_'.$url['UrlRewrite']
['id'],array('value'=>$url['UrlRewrite']['urlTo']))?>
<?=$ajax->editor('UrlRewriteUrlTo'.$url['UrlRewrite']['id'],'edit/
urlTo/'.$url['UrlRewrite']['id'],array('update'=>'url_rewrites_list'))?
>
</VIEW>

<VIEW edit.ctp>
<?php
print $value;
?>
</VIEW>

<CONTROL>
function edit($type,$id)
        {
                /*AJAX InLine editor support for urlTo
                 * */
                $this->autoRender = false;
                $this->controller->layout = $this->RequestHandler->ajaxLayout;
                $this->RequestHandler->respondAs('html', array('charset' =>
'UTF-8'));
                $this->UrlRewrite->id = $id;
                $value = $this->params['form']['value'];
                $this->UrlRewrite->saveField($type,$value);
                $this->FileUrl->writeUrl($this->UrlRewrite->findAll());
                echo $value;
                exit;
        }
</CONTROL>


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to