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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:41:05+00:00 2026-05-25T15:41:05+00:00

I have a tabbed panel created using the jquery ui tabs and where each

  • 0

I have a tabbed panel created using the jquery ui tabs and where each tab is loaded with ajax. On each of these tabs i have a number of nested forms. I’m using formtastic to create the form, and semantic_form_for to created the nested forms.

I have the client_side validation gem installed and working on my ‘normal’ forms. On the forms within the tabbed panels, it does nothing. I’m guessing that this might be because when the tab content is loaded with ajax the client_side_validation functions need to be bound to the inputs. Anyone have any experience of this? Even suggestions about where to begin debugging the problem would be much appreciated …

Thanks in advance

  • 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-25T15:41:06+00:00Added an answer on May 25, 2026 at 3:41 pm

    I instinctively didn’t like the idea of reloading the js files as suggested in the first answer, though the answer was helpful in pointing me in the right direction. Sure enough, a little way further along, the reimported files started to cause problems of their own so I did a bit more digging. To set up the tabs, I’m now using js like this:

        contacttabs.tabs({
                load: function(event, ui){
                       $('a.load_to_enquiries_tab').live("click", function() {
                            $('#enquiries').load(this.href, function() {
                                  set_styles();
                                  $(function() {
                                        $('form[data-validate]').validate();
                                  })
                                  return false;
                            });
                            return false;
                      });
    });
    

    The key lines are the ones in the callback which call validate() on the forms in the tab. This is a method in the client_side_validation validations.js file which binds the client side validation goodness to the form. This works for me now – hopefully it will help someone else too.

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

Sidebar

Related Questions

I have a small tabbed navigation setup using CSS. When hovering over the tabs
I am using jquery tabs to load content from a remote file. I have
I have this very basic tabbed block: $('.tabbed-section .panel').hide(); $('.tabbed-section .panel:first').show(); $('.tabbed-section .tabs li:first').addClass('active');
I have a tabbed GUI with each tab containing a Frame. In one of
I have created a tabbed view with four tabs and attached four listviews to
I have a page with a tabbed interface. Each tab has a unique id.
I have a search page with a tabbed panel, with a form within each
I have a tabbed jquery slider that I'm using to display elements of an
All, I have a question regarding Tabbed Panel in Struts2. If I have a
I have a tabbed pane, i want to resize the tabs...... not the entire

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.