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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T17:24:24+00:00 2026-05-21T17:24:24+00:00

Hi I am using jQuery UI Tabs as a form. Because of this I

  • 0

Hi I am using jQuery UI Tabs as a form.

Because of this I can’t use Ajax because all tabs/content has to be present when sending the form. The form consists of 9 different tabs, each with lot of code.

Now I want to outsource the content of these tabs to each an individual file (tab1.php, tab2.php, …).

My solution so far:

  1. I could include all the files (tab1.php, …)in the <head> and than load each content as a variable.
    I don’t like this because the code looks messy because of all the escaping.

  2. I use iframes. The frames only load when clicked.

    <div id="tab-1">
        <iframe src="..."></iframe>
    </div>
    

Is there a better approach?
Maybe using Ajax load-onceAll or something like that?… maybe something to prevent the iframe from reloading… I don’t know.

  • 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-21T17:24:25+00:00Added an answer on May 21, 2026 at 5:24 pm

    You can outsource the code to individual files then pull in their content with an Ajax jQuery call when the page loads:

    var tabs = [
       {
          url: 'tab1.php',
          $ctrl: $('div#tab1')
       },
       {
          url: 'tabN.php',
          $ctrl: $('div#tabN')
       }
    ];
    
    for(var i = 0; i < tabs.length; ++i)
    {
      var data = $.ajax({
        url: tabs[i].url,
        async: false
      }).responseText;
      tabs[i].$ctrl.html(data);
    }
    

    Then you can use some validation in onSubmit functions of the individual tabs forms to ensure they are not posted back until all are finished. This is just one possible solution.

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

Sidebar

Related Questions

I am using jQuery UI Tabs with Ajax. We have content in the tabs
I am using jquery-ui tabs and ajax to load the content of the tabs.
I'm using jQuery UI Tabs to load some content via Ajax when the user
i'm using jquery tabs.. i'm use tabs-1 as input form and tabs-2 as show
I am posting form data to a page that is using jQuery tabs. Because
I'm using jquery tabify with 4 tabs and each content same form calling via
I am using the jQuery UI tabs where each tab has a different form
I am using jquery UI tabs I have three ajax tabs like so: <div
Im using jquery UI's tabs with ajax. I was wondering if the files that
I am using jquery-ui tabs ...Actually i want to reset the form fields after

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.