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)
解决 无用评论 打赏 举报