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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:21:06+00:00 2026-05-25T16:21:06+00:00

Am trying to understand jquery. Am a bit slow, maybe cause I come from

  • 0

Am trying to understand jquery. Am a bit slow, maybe cause I come from a COBOL background.

I learn as i do, instead of just reading. php, jquery are all just hobbies for me

I used to have these update form pages. I wanted to try and put them in dialogs.

I trying using Dialog with an I frame, I did not like it, The iframes were very slow to load, of of the pages being loaded contained jquery tabs, which where even slower to load. And several other problems.

So I trying moving away from iframes. I stripped the pages and kept the meat(the body of my php/html file)(minus the body tag), So now I load a short version of my Form onto the dialog, It loads beautifully and looks good.

So next I wanna submit my for data, this is where I am a bit lost….

I am guesting I have to use Ajax, but on returning from Ajax with a OK/Fail message I am lost again.

My submit buttons were not jquery dialog buttons, Must they be so?

Must I use buttons:

{
     "Save" : function () {
          .....
     "Close" : function () {
          $(this).dialog("close");
          .....
}     

These are ugly and I have less control on where to place them and how the look.

  • 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-25T16:21:07+00:00Added an answer on May 25, 2026 at 4:21 pm

    All you need to do is make sure you have a form in your dialog box.
    The, add a listener on your form. Let’s say you have

    <form id="myForm">
        <input id="myInput" name="myName" type="text" />
    </form>
    

    Then you would add a listener :

    $("#myForm").die().live('submit',function(e) {
        e.preventDefault();
        $.ajax({
            type : POST,
            url : localhost:8080/myUrl,
            dataType : 'json',
            cache: false,
            contentType: "application/x-www-form-urlencoded; charset=UTF-8",
            data : $("#myForm").serialize(),
            success : function(){ //do what you want here, like displaying validation errors...},
            error:function (xhr, ajaxOptions, thrownError){ //manage ajax errors}
        });
    
        return false;
    });
    

    So your Save button is just a plain input type=”submit”

    Have fun !

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

Sidebar

Related Questions

I was just trying to learn and understand jQuery source code (so far with
I was trying to understand what I could from jQuery's animation functions, but ended
I am trying to understand the internals of how jquery framework is written and
I am trying to understand how Django + Jquery and Ajax calls work together.
Trying to understand Ruby a bit better, I ran into this code surfing the
Just trying to understand that - I have never used it before. How is
Being new to JQuery and trying to understand all the posts about different ways
So I'm trying to understand this whole AJAX/jQuery thing. Right now, when I run
I'm relatively new to JQuery. I'm trying to understand how to select a child
I'm a noob at json (know a bit of jquery)....and trying to get a

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.