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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:26:43+00:00 2026-06-15T21:26:43+00:00

I include a snippet of my project. When I run this code clicking add

  • 0

I include a snippet of my project.
When I run this code clicking add on the window’s dialog, and inside the submit, Firebug responds with an error.

I would like to know why this does not alert ("Se funziona questo mi hai aiutato");

http://api.jquery.com/submit/

There is a example at the end of the site and it works fine on my pc.

Now I public my code or exercise where I use the form inside the window’s dialog(Jquery).

I want programmed and I have the solution but the script inside the function’s javascript doesn’t work.

Why?

Now I speak about my project.

Using the dialog’s window (Jquery my code) for adding anything.

The project doesn’t work. Because (using Firebug Console) it gives me this error too much recursion on the library jquery.min.js line 2 after pressing the button add the Dialog.

How can I improve the code to run the alert?

My Project:

<html>
  <head>
    <title></title>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
    <style></style>
  </head>
     <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js"></script>
 <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript">
// <---- VENTAÑAS DE PARAMETERES---->
$(document).ready(function() { 
var regex,v,l,c,b,i,contapara=3;
$( "#wnd_Addparam" ).dialog({
            autoOpen: false,
            height: 'auto',
            width: 350,
            modal: true,
            resizable:false,
            buttons: {
                "Add": function() {
                                 contapara=(parseInt(contapara)+1);
alert("popopo");
                $("#formparam").submit(function() {
                              alert("Se funziona questo mi hai aiutato");
                    });
                                $( this ).dialog( "close" ); 
                                   },
                Cancel: function() {
                    $( this ).dialog( "close" );
                }
            },
            close: function() {
                $( this ).dialog( "close" );
            }
        });

        $( "#btn_Addpar" ).click(function() {
                        i=(parseInt(contapara)+1);
                        $("#formparam").remove();
    $("#wnd_Addparam").append('<form method="GET" name="formparam"  id="formparam" action="${nextstep}"><table><tr><td><label>ID</label></td><td>\
    <textarea class="expand" name="inputp'+i+'_id" id="inputp'+i+'_id"></textarea></td></tr>\
    <tr><td><label>Type</label></td><td><select name="inputp'+i+'_type" id="inputp'+i+'_type">\
    <option value="text">Text</option><option value="integer">Integer</option><option value="float">Float</option>\
    <option value="list_values">List of values</option><option value="range">Range</option>\
    <option value="selection_collapsed">Selection (collapsed)</option>\
    <option value="selection_expanded">Selection (expanded)</option>\
    <option value="subimage">Subimage selection</option>\
    <option value="polygon">Polygon selection</option>\
    <option value="horizontal_separator">Horizontal separator</option>\
    </select></td></tr></table></form>');



                $( "#wnd_Addparam" ).dialog( "open" );
            });
});
</script>
  <body>
<div>
 <input type="button" id="btn_Addpar" value="Add"/>
<input type="button" id="btn_Deletepara" value="Delete"/>
<input type="button" id="btn_Pedit" value="Edit"/>
</div>
<div id="wnd_Addparam" title="New parameter" ></div>
</body>
</html>

I looked also this question How to change the querystring when I submit my GET form using JQuery? and he used (always inside the function’s submit) this script:

   function(event) {
            event.preventDefault();
            $this = $(this);
            alert("Se funziona questo mi hai aiutato");
}

But it doesn’t work either.

  • 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-15T21:26:44+00:00Added an answer on June 15, 2026 at 9:26 pm

    I changed your jsFiddle to get a few things working, but it’s probably still not the way you want it:

    jsFiddle.

    I added jQuery and jQuery-ui to your jsFiddle so it would compile, and put an alert stub in where you should put your form submission code.

    Your .submit() handler was not getting called because the add and cancel buttons are added by the jquery-ui .dialog(...) invocation and are not part of the <form> element.

    If you put your ajax code in the “Add” button function handler you should be good to go. I don’t know what most of your code does, but this might at least help.

    var regex,v,l,c,b,i,contapara=3;
    $( "#wnd_Addparam" ).dialog({
        autoOpen: false,
        height: 'auto',
        width: 350,
        modal: true,
        resizable:false,
        buttons: {
            "Add": function() {
                contapara=(parseInt(contapara)+1);
                alert("add was clicked");
                // to use ajax uncomment below, depending on the 
                // service you're hitting, you may need
                // to change it to $.get(... etc 
                // which will use HTTP GET verb
                /*
                var $fm = $("#formparam");
                $.post($fm.attr('action'), $fm.serializeArray())
                    .done(function(data, ok){
                        alert('call done: ' + ok);
                        // data is the content of the response
                    })
                    .fail(function(data){
                        alert('call failed');
                        // call failed for some reason -- add error messaging?
                    });                            
                */
                $( this ).dialog( "close" );
            },
            Cancel: function() {
                $( this ).dialog( "close" );
            }
        }
    });
    
    $( "#btn_Addpar" ).click(function() {
                    i=(parseInt(contapara)+1);
                    $("#formparam").remove();
                $("#wnd_Addparam").append('<form method="GET" name="formparam"  id="formparam" action="${nextstep}"><table><tr><td><label>ID</label></td><td>\
                <textarea class="expand" name="inputp'+i+'_id" id="inputp'+i+'_id"></textarea></td></tr>\
                <tr><td><label>Type</label></td><td><select name="inputp'+i+'_type" id="inputp'+i+'_type">\
                <option value="text">Text</option><option value="integer">Integer</option><option value="float">Float</option>\
                <option value="list_values">List of values</option><option value="range">Range</option>\
                <option value="selection_collapsed">Selection (collapsed)</option>\
                <option value="selection_expanded">Selectionddddd (expanded)</option>\
                <option value="subimage">Subimage selectiondddddd</option>\
                <option value="polygon">Polygon selectionddd</option>\
                <option value="horizontal_separator">Horizontal separator</option>\
                </select></td></tr></table></form>');
    
    
            $( "#wnd_Addparam" ).dialog( "open" );
        }); ​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is the code snippet: #include <boost/utility.hpp> #include <boost/type_traits.hpp> #include <boost/type_traits/is_base_of.hpp> #include <boost/typeof/typeof.hpp> enum
that this snippet of code actually do? #include <iostream> #include <cstdio> #include <cstdlib> using
Following simplified code snippet: #include <QtGui> int main(int argc, char **argv) { QApplication app(argc,
I have a very basic question. Lets take this snippet: #include <stdio.h> void foo(void)
Please see the code snippet below : #include <iostream> using namespace std; int main()
I wrote the following code snippet in VS2010: #pragma once #include stdafx.h #ifndef SECURITY_WIN32
The Google Analytics setup instructions state: This tracking code snippet should be included in
While I run snmpd daemon on powerpc board(a.p.) I am getting this error: R_PPC_REL24:
I just tried the following code snippet for shellcode testing purposes:- #include<iostream> using namespace
Many iPhone code samples (from Apple, etc.) include code like this: - (void)viewDidLoad {

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.