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 8475205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:49:59+00:00 2026-06-10T17:49:59+00:00

I’m having a little problem getting the jQuery bassassistance validation plugin to work. First,

  • 0

I’m having a little problem getting the jQuery bassassistance validation plugin to work. First, I will point you to the site in question under development. Development site. I’m an ESL teacher in China so the site is in Chinese, to get to the problem area:

  • There are two buttons in the top left of the page, click the first one
  • After the ajax request is complete a modal dialog will pop up with a login form

Here the trouble is. Simply put, I can’t get the validation plugin working. Some additional validation methods have been defined and firebug tells me they are loaded in to object fine; even if I set the rules to look for required it stills returns nothing, not even an error. I can use the console to call validate and it does work but, again, with no feedback other than returning the object. This problem really has me scratching my head

A simplifed timeline of operation flows like this:

  1. When a page is called, a type is set, in this case form
  2. A request is made to the server which returns xml
  3. Any extra stylesheets and script files are downloaded and injected in to head. #works#
  4. The validation rules are in an xml node in json form which are stored in my pagecontroller class. Example at end of post. This response is browser safe and currently transforms in to an object
  5. After the dialog box has popped up and the form is injected, a function called formentities attach is called #works#
  6. The last part of this function is attaching the validation function to the form, it uses the rules sent back from the server

    /* Attach validation to the button class used for submit*/
    $(".form-submit").live("click", function(event){
       event.preventDefault();
       event.stopImmediatePropagation();
       /* Perform the actual validation */
       $("#"+params.strFormName).validate({
          /* As defined from ajax call */
          rules: params.objValidation,
          /* Custom function to prevent default send */
          submitHandler: function(form) {
             /* Now the form has passed script validation, set it as inactive */
             var strFormName = form.id;
             params.strRequestType = "formresponse";
             params.strRequestMethod = "POST";
             params.strRequestURL = $("#"+strFormName).attr("action") + '&ajax_type=formresponse'; 
             params.strRequestParameters = $("#"+strFormName).serialize();
             methods.requestpage();
          }
       });                  
    });
    

Any pointers would be much appreciated. Thank you for reading this question

  • 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-06-10T17:50:00+00:00Added an answer on June 10, 2026 at 5:50 pm

    What if you reorder your code and then call the valid method?

    // You need to create the validation object first and initialize it.
    $("#"+params.strFormName).validate({ // This method doesn't "validate" it instantiates.
          /* As defined from ajax call */
          rules: params.objValidation,
          /* Custom function to prevent default send */
          submitHandler: function(form) {
             /* Now the form has passed script validation, set it as inactive */
             var strFormName = form.id;
             params.strRequestType = "formresponse";
             params.strRequestMethod = "POST";
             params.strRequestURL = $("#"+strFormName).attr("action") + '&ajax_type=formresponse'; 
             params.strRequestParameters = $("#"+strFormName).serialize();
             methods.requestpage();
          }
       });                  
    
    /* Attach validation to the button class used for submit*/
    $(".form-submit").live("click", function(event){
       event.preventDefault();
       event.stopImmediatePropagation();
       /* Perform the actual validation */
       $("#"+params.strFormName).valid(); // Call the valid method here to see check if form is valid
    });
    

    A little documentation never hurts.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
We're building an app, our first using Rails 3, and we're having to build
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I don't have much knowledge about the IPv6 protocol, so sorry if the question
I am currently running into a problem where an element is coming back from
I need a function that will clean a strings' special characters. I do NOT

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.