weixin_33734785 2011-11-25 05:09 采纳率: 0%
浏览 22

CakePHP Ajax更新操作

i would like to know if we have something to do to keep style in a update input with a Ajax->link?

I have this code.

  <?= $this->Ajax->link('Update fields', array('controller' => 'residences', 'action' => 'edit', $residence['Residence']['id']), 
            array('update' => 'finance_dep_nourriture_commentaire')) ?>

and my div

<?= $this->Ajax->div('finance_dep_nourriture_commentaire') ?>
    <?= $this->Form->input('Residence.finance_dep_nourriture_commentaire', array('size' => '10', 'alt' => 'cash')) ?>$/l'unit&eacute;   
<?= $this->Ajax->divEnd('finance_dep_nourriture_commentaire') ?>

my field have this code before the update

<div id="finance_dep_nourriture_commentaire">
 <input id="ResidenceFinanceDepNourritureCommentaire" type="text" value="1600.00" alt="cash" size="10" name="data[Residence][finance_dep_nourriture_commentaire]" style="text-align: right;">mask=Object { attr="alt", mask="99.999999999999", type="reverse", more...}events=Object { keydown=[1], keypress=[1], keyup=[1], more...}handle=function()

$/l'unité

after the update

<div id="finance_dep_nourriture_commentaire">
  <input id="ResidenceFinanceDepNourritureCommentaire" type="text" value="2000.00" maxlength="13" alt="cash" size="10" name="data[Residence][finance_dep_nourriture_commentaire]">

$/l'unité

how i can keep the mask, style, etc?

thanks.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 python中合并修改日期相同的CSV文件并按照修改日期的名字命名文件
    • ¥15 有赏,i卡绘世画不出
    • ¥15 如何用stata画出文献中常见的安慰剂检验图
    • ¥15 c语言链表结构体数据插入
    • ¥40 使用MATLAB解答线性代数问题
    • ¥15 COCOS的问题COCOS的问题
    • ¥15 FPGA-SRIO初始化失败
    • ¥15 MapReduce实现倒排索引失败
    • ¥15 ZABBIX6.0L连接数据库报错,如何解决?(操作系统-centos)
    • ¥15 找一位技术过硬的游戏pj程序员