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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:15:05+00:00 2026-06-10T12:15:05+00:00

I need the help of the experts on here. My code is fine and

  • 0

I need the help of the experts on here.

My code is fine and dandy and works great a single time once the “Open” button is clicked. Once I select date it closes just fine. However, when I go to re-open it again for a second time the width and height are out of scope and the ui dialog looks different. I am wondering what I am doing wrong here?

<html>

<head>

<!-- LOAD JQUERY LIBRARY: -->  
    <link   href="jq/jquery-ui.css"         type="text/css" rel="stylesheet" />
    <script src="jq/jquery.min.js"          type="text/javascript"> </script>
    <script src="jq/jquery-ui.min.js"       type="text/javascript"> </script>

<script type="text/javascript">
var z; 

function opendd() {

  $('#dd').dialog({  
       autoOpen:   true, 
       modal:      true, 
       overlay:    { opacity: 0.5, background: 'black'}, 
       title:      'Select the date:', 
       height:     215,  
       width:      234, 
       draggable:  false,  
       resizable:  false 

   });//end of dialog_atip 


  $("#B1").click(function(){  
        callback(); 
  }); 

  $('#d1').datepicker({ 
     onSelect:function(){ 
                    z = $(this).val(); 
                    alert(z); 
                    $("#dd").dialog("close"); 
     } 
  }); 

}//end of function


function callback() {  
    alert(z); 
} 
</script>


</head>

<body>
<a href="javascript:opendd()">open
</a>
<div style="display:none" id="dd">
<div id="d1">
</div>

</div>
<input type="button" value="CallbackValue" name="B1" id="B1"> 

</body>

</html>

Much thanks and appreciation for all your help and support in advance.

Jay

  • 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-10T12:15:06+00:00Added an answer on June 10, 2026 at 12:15 pm

    I wasn’t able to duplicate your described behavior, but did rewrite some of the functionality to more accurate to what jQuery recommends, which might fix your issue.

    In the code block below, I instantiate the jQuery modal dialog once on document ready, then fire the dialog(‘open’) command each time to open / close it. (I swapped out your libraries with google api for testing).

    Please let me know if this works for you 🙂

    <html>
    
    <head>
    
    <!-- LOAD JQUERY LIBRARY: -->  
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.8.23/themes/base/jquery-ui.css" type="text/css" media="all" /><script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js"></script>
    <script type="text/javascript">
    var z; 
    
    $(document).ready(function() {
        $('#dd').dialog({  
           autoOpen:   false, 
           modal:      true, 
           overlay:    { opacity: 0.5, background: 'black'}, 
           title:      'Select the date:', 
           height:     215,  
           width:      234, 
           draggable:  false,  
           resizable:  false 
    
        });//end of dialog_atip 
        $("#B1").click(function(){  
            callback(); 
        }); 
        $('#d1').datepicker({ 
            onSelect:function(){ 
                        z = $(this).val(); 
                        alert(z); 
                        $("#dd").dialog("close"); 
            } 
        }); 
    });
    
    
    function opendd() {
        $('#dd').dialog('open');
    }//end of function
    
    
    function callback() {  
        alert(z); 
    } 
    </script>
    
    
    </head>
    
    <body>
    <a href="javascript:opendd()">open
    </a>
    <div style="display:none" id="dd">
    <div id="d1">
    </div>
    
    </div>
    <input type="button" value="CallbackValue" name="B1" id="B1"> 
    
    </body>
    
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Once again I need some much appreciated help from the experts :) I am
Iam bit new to SpringMVC REST concept. Need a help from experts here to
Silverlight experts out there, I need some help. I used Deep Zoom Composer to
need help to create regular expression matching string www.*.abc.*/somestring Here * is wild card
Usually I handle my bugs by myself but this time I need help of
I am no expert in Flash, and I need some quick help here, without
I need a regex expert to help out on this one. Examples I've found
Need help, function getFamily() { FB.api('/me/family', function(response) { alert(JSON.stringify(response)); }); } With the above
Need help with a query that I wrote: I have three tables Company id
Need help getting Ember-Data working with Zend Rest. At first, I'm familiar with Zend

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.