开发者

AJAX request with Zend Form

开发者 https://www.devze.com 2023-02-13 03:31 出处:网络
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

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

精彩评论

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