weixin_33713350 2011-02-25 05:40 采纳率: 0%
浏览 18

Zend Form的AJAX请求

How do I submit a Zend form using ajax request with jquery so that the page does not refresh? I've used ajaxLink with Zend but I don't see how I can use it with a form..

  • 写回答

1条回答 默认 最新

  • weixin_33695082 2011-02-25 08:32
    关注

    Well, I don't know if there exists any inbuild function for form ajax submit in zf. But you can accomplish this normal way.

    One way is to append js file

    $this->jQuery()->addJavascriptFile('//path to you jquery form submit script')
    

    In other way you can add form submitting function on onLoad function

    $function = "//some jquery-ajax form submit script"
    
    $this->jQuery()->addOnload($function)
    
    评论

报告相同问题?

悬赏问题

  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料