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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T16:24:18+00:00 2026-05-19T16:24:18+00:00

So right now we have a JQuery UI dialog that looks like this: $(id).dialog({

  • 0

So right now we have a JQuery UI dialog that looks like this:

$(id).dialog({
    modal: true,
    resizable: false,
    title: title,
    width:350,
    height:height,
    autoOpen: false,
    buttons: { "Cancel": function() { $(this).dialog("close"); } }
});

This works fine. However, INSIDE the JQuery dialog we have this div:

<div id="SaveTemplateDialog">
    <table width="100%">
        <tr class="templatesExist">
            <td colspan="2">
                <%= Html.RadioButton("SaveNewTemplate", true, true, new { onclick = "SetSaveTemplateDisplay();", createnewtemplate = true })%>Create
                    new template
            </td>
        </tr>
        <tr class="newtemplate">
            <td>
                &nbsp; &nbsp; &nbsp;
            </td>
            <td>
                Template name:
                <input type="text" id="NewTemplateName" onchange="ValidateTemplateName();" /><span                           nonstdvalidatorfor="NewTemplateName" message="Template name is a required field."><img
                            class="validation" src="<%= VirtualPathUtility.ToAbsolute("~/img/exclamation.gif")%>" /></span>
            </td>
        </tr>
        <tr class="templatesExist">
            <td colspan="2">
                <%= Html.RadioButton("SaveNewTemplate", false, false, new { onclick = "SetSaveTemplateDisplay();" })%>Overwrite
                    existing template
            </td>
        </tr>
        <tr class="overwritetemplate templatesExist">
            <td>
                &nbsp; &nbsp; &nbsp;
            </td>
            <td>
                <%= Html.DropDownList("ExistingTemplate", Chatham.Web.Models.Indications.DropDownData.AllEditableTemplates())%>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="2" align="right">
                <div style="text-align: center; cursor: pointer;" id="saveTemplateButton">
                    <img src="<%= VirtualPathUtility.ToAbsolute("~/img/btn_form_save_template_off.GIF")%>" />
                </div>
                <div style="text-align: center; cursor: pointer;" id="saveTemplateValidation">
                    Please correct all validation before Saving
                </div>
            </td>
        </tr>
    </table>
</div>

See that id=”saveTemplateButton” button? We want THAT to sit right next to the ‘Cancel’ button on the bottom bar of the JQuery dialog. I tried a bunch of crap but couldn’t get it to work. How can I do this?

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

    This worked. I messed up the syntax the first time.

    buttons: {
                        "Save Template": function() 
                            { 
                                if ($('#saveTemplateValidation').is(":visible"))
                                {
                                    alert('Please correct validation errors before saving.');
                                }
                                else {
                                    SaveTemplate();
                                }
                            }, 
                        "Cancel": function() 
                            { 
                                $(this).dialog("close"); 
                            } 
                    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Right now, I have a jQuery UI pop-up dialog that reads from an external
I have a div tag in my modal dialog built using JQuery like this:
well right now I basically have the jquery load function like this $('#results').load(sources.php?source=1&page=<?=$_GET['page']?>&search=<?=$_GET['search']?>); so
I have this code right now to get the row value from jquery grid..
Right now I have a jQuery UI dialog with an <iframe> inside of the
I have this jQuery function: $('#invite_friends_email').live('click' , function() { $(#invite_friends_email).dialog(); return false; }); and
Good morning. I have a modal JQuery dialog that on Open calls and loads
I have a very basic jquery mobile modal dialog that INTERMITTENTLY reloads on clicking
I have this debug tool that used Jquery UIs dialog to display some information.
I am wondering how would I do this with like jQuery ajax. Right now

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.