Hi,
I am loading the dialog using a ajax request. The dialog appears but I
focusing the input don't work, the calendar appears when I manually
use the console: $('#dateValue').focus()

What am I doing wrong?

Thanks!

HTML ajax reply:
<script type="text/javascript">
    jQuery('#dateDialog').dialog({
            modal: true,
            autoOpen: false, // don't work with true either
            bgiframe:false
    });
</script>
<style type="text/css">
    .ui-datepicker
    {
        z-index: 9003; /* must be > than popup editor (1002) */
    }
</style>
<div id='dateDialog'>
    <form>
           <script>
                    jQuery(function() {
                        jQuery("#dateValue").datepicker
(
                            { dateFormat: "d/mm/y",
                                firstDay: 2 -1,
                                currentText: "current",
                                closeText: "done",
                                prevText: "prev",
                                nextText: "next",
                                showOtherMonths: true,
                                navigationAsDateFormat :true,
                                changeYear:true
                            }
                        );

                    });
         </script>
         <input type="text" id="dateValue" name="dateValue"
value="null" />
        <input type="hidden" name="name" value="" />
        <input type="hidden" name="foo" value="public" />
        <input type="button" name="but" value="OK"
onclick="javascript:sendInputChosen(this)" />
    </form>
</div>

--

You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=.


Reply via email to