开发者

AJAX request with Zend Form

How do I submit a Zend开发者_JAVA百科 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..


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)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜