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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:29:15+00:00 2026-06-14T05:29:15+00:00

I have been struggling with form submission into a dynamic tab. All it seems

  • 0

I have been struggling with form submission into a dynamic tab. All it seems to do is break out of my tabs and end up displaying the update page.

The long lead in. I create 2 tabs on my index page, my search is internal, the second calls my large form page:

 <div id="tabs">
   <ul>
     <li><a href="create.cfm"><span>Create</span></a></li>
     <li><a href="#searchtab"><span>Search</span></a></li>
   </ul>
   <div id="searchtab">
     [search page stuff]
   </div>
 </div>

Both pages work great, the create tab allows me to fill in a new form, and submit it. When it submits, it validates then displays the “thank you” in the create tab.

This is a snippet of the submit code:

 $(document).ready(function(){                     
   $("#saCreate").validate({
        [validation stuff]
    },
    submitHandler: function(form) {
        if (confirm("Are you sure you want to submit?")) {
    form.submit();
        }

and this works as desired.

The search page shows a list of all “open” forms, allows you to select one, and it will open its details in a new dynamic tab.

For example:

 gridSelect = function(satrk) {
 var checkName = satrk;
 var tabExists = false;
   $('#tabs ul li a').each(function(i) {
   if($(this).text() == checkName) {
    tabExists = true;
}
});

// React to existance:
if(!tabExists){
$("#tabs").tabs("add","details.cfm?satrk="+satrk,satrk);
$("#tabs").tabs("select", satrk); // select tab by index
}else{
$("#tabs").tabs("select", satrk); // select tab by index
}

Basically, if the tab is open, just select it, but if not, create a new one, use the “id” passed to gridSelect as the name. This id is literally the db id.

This also works great. I am now looking at a new dynamic tab with my old form details. Its nothing more than the same old form for creation, but with the form boxes filled in from the DB.

If I need to make a change, I make it, then hit the “update” button. It does the same validation as before, and if good submits.

This is where it all falls to crap. This form does not submit and show a thank you in my nice dynamic tab. This form submits and shows a thank you in a new URL overwriting the old form interface. For example, blah,blah,blah/update.cfm

I am pretty new to jQuery, I have done a lot of testing and searching and trying and tinkering to get where I am, but I fear I have out reached my basic ability.

I want my update page to simply refresh my dynamic tab with my update confirmation.

Help!

  • 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-14T05:29:16+00:00Added an answer on June 14, 2026 at 5:29 am

    A standard POST request will indeed instruct the browser to render a new page. What you are looking for is an ajax submit. You can use the success callback to manipulate the DOM based on the result as needed.

    As for form variables, you can use $('form').serialize() to turn all form fields into a json object for submission. See http://api.jquery.com/serialize/ for more info.

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

Sidebar

Related Questions

I have been struggling for a few days trying to find out how come
I have been struggling all afternoon trying to get a simple mailto: tag to
I have been struggling to send emails form within a Haskell program for a
I have been struggling to create a django form which users can fill and
I'm very new to programming in Android, but have been struggling all day with
I have been struggling with this for days. I have a form that's a
I have been struggling with this for a while now. given a set of
I have been struggling with Core Data sigh so I decided to work this
I have been struggling with setting up an iOS (Objective-C) app which utilizes the
I have been struggling with this error for more than two hours: error: aggregate

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.