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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:19:54+00:00 2026-06-07T11:19:54+00:00

<script type=text/javascript> $(function () { $(‘form’).submit(function () { $.ajax({ url: this.action, type: this.method, data:

  • 0
   <script type="text/javascript">
        $(function () {
            $('form').submit(function () {
                $.ajax({

                    url: this.action,
                    type: this.method,
                    data: $(this).serialize(),
                    success: function (result) {
                        $('#popUp').html(result);
                    }
                });
                return false;
            });
        });
</script>
 <script type="text/javascript">
     $(function () {
         $('form').submit(function () {
             $("#popUp").dialog(
             {
                title: $(this).attr("data-dialog-title"),
                 minWidth: 500,




             );

         });
     });


    </script>

The above code gave a pop up box for button click in the insert page, but How can I control the attributes of the popup box such as resizable, modal:true,false, also how can I close this popup by a button click from another partial view called _error.

  • 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-07T11:19:56+00:00Added an answer on June 7, 2026 at 11:19 am

    This should work, as it did for me, enter this script in your page or create a test page so you can play with it a bit:

    <script>
            $("#dialog-confirm").dialog({
                resizable: true,
                height: 340,
                width: 600,
                autoOpen: false,
                modal: true,
    
                buttons: {
                    Cancel: function () {
                        $(this).dialog("close");
                    }
                }
            });
    
    </script>
    

    Which should manipulate a div similar to this which should be in your page:

    <div id="dialog-confirm" title="Confirm?">
        <p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>
            Confirm.<br />
            <div class="preview">
                Message...
    
            </div>
            <br />Confirm?</p>
    </div>
    

    I located this using the dialog documentation at http://www.jquery.com

    You can change the name of the button by replacing it with whatever you seem fit like so:

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

    becomes:

    "New value here": function () {
        $(this).dialog("close");
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jQuery script: $.ajax({ url: /scripts/secure/development/ajax.asp, type: POST, dataType: text, data: cmd=addresses,
Can someone show me whats wrong with this: <html> <script type = text/javascript> function
This my javascript :- <script type =text/javascript> $(function() { $(#tabs).tabs({ cache: true ,fx: {
Look this code: <script type = text/javascript> function mouseClick (container) { container.appendChild (document.createTextNode (Can
I have this code: <script type=text/javascript> function js() { var getJs = document.getElementById(jogo); if
I have this code <html> <head> <script src=jquery-1.7.2.min.js type=text/javascript></script> <script src=jquery-ui-1.8.20.custom.min.js type=text/javascript></script> <script type
I am calling a service that return JSON data. Script: $.ajax({ type: "POST", url:
I have this jQuery script var dataString = class_id=+class_id; $.ajax({ type: POST, url: page.php,
< script type = text/javascript > $(function() { var oAllLinksTable = $(#mydatatable).dataTable({ bProcessing: false,
I would like to add this code: <script type=text/javascript src=http://www.formstack.com/forms/js.php?1134414-uqmj2UXxEw-v2> </script> <noscript> <a href=http://www.formstack.com/forms/CampusEnterprises-chopped_greens_order_form__copy

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.