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

  • SEARCH
  • Home
  • 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 3850200
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T16:58:22+00:00 2026-05-19T16:58:22+00:00

I found this question on another forum where it didn’t get any answers. I

  • 0

I found this question on another forum where it didn’t get any answers. I thought it was a good question worth asking here. I’m pasting it here word for word.

Hi guys, I’ve got a pie in the sky
idea, and I’m just wondering if it’s
even remotely possible, or if I should
give up and try something else.

I’ve got a bunch of Zend_Dojo_Form
forms with a bunch of custom
validators on the Zend side – they
work fine, the form errors out when
values are incorrect, it’s all working
exactly as you’d expect, however, what
I’d also like is for the same
validators to work on the Dojo client
side of the form – but without having
to completely re-implement them,
validator by validator.

I understand that at its simplest
level, the Dojo isValid method doesn’t
know or care about the application
behind it, and indeed for it to even
be able to get access to the errors in
the application it’d have to attempt a
submit, which isn’t what it’s meant to
do, but has anyone tried a system of
something like:

  1. override form onSubmit to add our code
  2. test Dojo isValid()
  3. if the Dojo side is happy, AJAX submit the form
  4. if successful, which would be returned i don’t know how, then
    forward on to the appropriate page
  5. if not successful, then (and this is where it gets tricky I guess) pass
    back enough data to know what field
    errored out, what the error was, and
    then call enough of the Dojo isValid
    internal guts to make the form look
    like it didn’t validate?

Sorry to just be airing ideas like
this, I just figured it might be
really useful if we could come up with
a way to sort of globally add custom
validators to our forms that work both
client and server side, without having
to implement them uniquely on both
sides.

  • 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. Editorial Team
    Editorial Team
    2026-05-19T16:58:23+00:00Added an answer on May 19, 2026 at 4:58 pm

    Meh, dojo 🙁

    Use Jquery 🙂

    Look at this, it’s awesome:
    Ajaxify Your Zend_Form Validation with jQuery

    We’re going to take what was put
    together in the last 3 videos and now
    include some server-side validation
    that will appear asynchronously. This
    is an example of using Zend_Form as a
    validation tool via JSON.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question is related to another I ask recently, it can be found here
After long investigations and reading this question I still didn't get a good solution
This question is a derivation from another question in this forum which I thought
This is a follow up to another question of mine. The solution I found
I haven't found this question, feel free to close if it's already up here.
This question has been asked, in one form or another, a dozen times here,
I want to copy an existing form to another form. I found this question
I searched the web but haven't found a real good answer for this question..
Found this question that explained a way to communicate between layers. However there is
I found this question which had an answer to the question of performing batch

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.