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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:03:58+00:00 2026-06-08T07:03:58+00:00

I have an HTML5 page with several data inputs inside a jQuery Dialog box.

  • 0

I have an HTML5 page with several data inputs inside a jQuery Dialog box. I sweep this data into form processing with the input attribute form=dataInput. It works fine in Firefox and Chrome, but not in IE because IE does not support the input form attribute. Something about the Dialog widget makes input box elements ‘invisible’ to form processing. The form attribute fixes this for browsers that support HTML5, but no released IE has this support. I tried $(‘.ui-dialog’).appendTo(‘form’); in the Dialog open: option, but it does not fix the problem. Is there a way to get IE to sweep input data out of a Dialog widget and into $_POST ?

Here is a sample of an input box inside the Dialog

<label><input type="radio" id="unitedStates"  name="country" form="dataInput" value="US">United States</label>

I use the jQuery Form plug-in to perform the submit. It has some options, like beforeSubmit and beforeSerialize, but I don’t understand the documentation or the submit process well enough to know if they can be used to solve this problem. Please be specific with code or tutorials. I’m new enough to this that I don’t follow general instructions well. 😉 (BTW, IE has the other feature support I need, just not this one.)

Here’s my code with Andrew Hagner’s suggestion and my modification. Dialog works, but IE does not set a value for the country. What needs to change?

var countrySelected = $("input[type=radio][name=country]").val(); //set earlier by W3C geocoding
var countryChooser = $('#countryChoices').dialog( {       
    autoOpen: false,
    bgiframe: true,
    height: 300,
    width: 850,
    resizable: false,
    draggable: true,
    title: "Click to select another country",
    open: function () {
            $('#regions').tabs(
                {
                event: "mouseover",
                })
        },
    buttons: {
        'Close / continue location input': function ()
                {
                countrySelected = $('input[name=country]:checked').val();
                $(this).dialog('close');
                }
            } 
});
//then later on
getCityFromGeonames3Step(countrySelected);
  • 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-08T07:03:59+00:00Added an answer on June 8, 2026 at 7:03 am

    Updated:

    // Before you enter dialog, assign the element you will
    // be grabbing the info from to a variable.
    var countrySelectionElement = $("input[type=radio][name=country]").val(); 
    var countrySelected = "";
    
    var countryChooser = $('#countryChoices').dialog( {       
    autoOpen: false,
    bgiframe: true,
    height: 300,
    width: 850,
    resizable: false,
    draggable: true,
    title: "Click to select another country",
    open: function () {
            $('#regions').tabs(
                {
                event: "mouseover",
                })
        },
    buttons: {
        'Close / continue location input': function ()
                {
                // Since jQuery won't work in here, use the variable
                // we assigned above to access value.
                countrySelected = countrySelectionElement.val();
                $(this).dialog('close');
                }
            } 
    });
    
    //then later on
    getCityFromGeonames3Step(countrySelected);
    

    Original:

    Before you open the dialog assign the input to a variable:

    function OpenDialog()
    {
        var input = $("yourinput");
    
        // Open dialog, use input to work with that element.
    
        // If you want you can then place the entered data in a hidden field
        // using jQuery, in the same way we are using input here. Then you will
        // be able to post that data back however you like.
    
    }
    

    I had this problem the other day, I found this solution on jQuery’s Dialog site.
    http://jqueryui.com/demos/dialog/#modal-form

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

Sidebar

Related Questions

I have an ASP.NET web app that places several string data into an object
I have a page that inputs values of textareas into a mysql database. Since
I have a page that inputs values of textareas into a MySQL database. Since
I have a page with several .desc divs. I want to add some html
I have just created an HTML5 page with a background image in the top
I have an HTML5 Canvas on my page along with two text input fields.
I have a bit of problem when trying to validate my page as HTML5.
I have an html page with a link like this: <a href=javascript:window.print()>Print QR code</a>
I have several 'select' elements on the page. When I choose some of options,
I have a documentFragment with several child nodes containing some .data() added like so:

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.