Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 172677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:12:30+00:00 2026-05-11T13:12:30+00:00

Any one a idea how to simply create a form with Zend_Form and jquery?

  • 0

Any one a idea how to simply create a form with Zend_Form and jquery? I want to use Zend_Form to validate the form so I don’t have to dual script the form in JavaScript and PHP.

Thank you,

Ivo Trompert

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T13:12:30+00:00Added an answer on May 11, 2026 at 1:12 pm

    No problem there.

    Add ZendX_JQuery to your library if you use autoload.

    Then extend ZendX_JQuery_Form to your needs. Do your stuff in the init() method of your class.

    For example, I was able to create an AutoComplete field which has regular Zend_Form validation plus JQuery behavior like this:

    $elem = new ZendX_JQuery_Form_Element_AutoComplete(     'query',      array('Label' => 'Search',            'required'=>true,            'filters'=>array('StripTags'),            'validators'=>array(                             array('validator'=>'StringLength',                                 'options'=>array('min'=>'3'),                                 'breakChainOnFailure'=>true                                 ),                             array('Alnum')                 )         )     );  $elem->setJQueryParams(array('data' => array(),     'url' => 'my_autocomplete_callback.php',     'minChars' => 1,     'onChangeInterval' => 500,     ) ); 

    Then I even changed the default decorators like this:

    $elementDecorators = array(     array('UiWidgetElement', array('tag' => '')),     array('Errors', array('tag' => 'div', 'class'=>'error')),     array('Label'),     array('HtmlTag', array('tag' => 'div')), ); $elem->setDecorators($elementDecorators); 

    And finally add to my form (remember I’m in the init() so I’ll address it via $this):

    $this->addElement($elem); 

    There you are, the magic is done.

    PS: don’t forget to add the following in your bootstrap:

    $view->addHelperPath('ZendX/JQuery/View/Helper/', 'ZendX_JQuery_View_Helper'); 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I missed my workspace in which I was working. Any one have idea about
Any one have an idea to share running multiple tomcats on single machine with
Does any one have any idea why this would be happening? This is some
I have no idea why any one would do this (include support for Lists
So I have a form that I want the user to use to update
I have been attempting to create a form where a user can simply press
Do any one has any idea from where the below $ isUserLoggedInor $hideRegisterLink variable
Any idea how one can bind binary data to a ComponentOne WebReport control?
Any idea why after replacing one UIView with another (with the same Touch event
Anyone any idea on how to merge 2 rectangle images inside one large image?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.