You are right ! That solved the problem and that simplified the code !

On 23 jan, 12:00, "Richard D. Worth" <[email protected]> wrote:
> On Fri, Jan 23, 2009 at 5:21 AM, phicarre <[email protected]> wrote:
>
> > jquery-1.3 + ui-jquery-1.6rc5
>
> > <div class="ui-dialog ui-dialog-content" id='creerDialog'
> > style="display:none" >
> >  <form action='' id='form1' >
> > ...
> > </form>
> > </div>
>
> Is this sample markup of what you start with? If so, remove the ui-dialog
> and ui-dialog-content classes. These are added by the plugin. It's not
> intended that you would add these yourself. Your starting markup should look
> like this
>
> <div id='creerDialog' style="display:none">
>   <form action='' id='form1'>
>   ...
>   </form
> </div>
>
> After you call $("#creerDialog").dialog(options) the dialog will add the
> appropriate elements and classes. Then if you inspect in Firebug, it should
> look like this:
>
> <div
>     style="overflow: hidden; display: block; position: absolute; z-index:
> 1001; height: auto; width: 415px; top: 232px; left: 427.5px;"
>     class="ui-dialog ui-widget ui-widget-content ui-corner-all undefined
> ui-draggable"
>     tabindex="-1" role="dialog"
> aria-labelledby="ui-dialog-title-creerDialog">
>   <div class="ui-dialog-titlebar ui-widget-header ui-corner-all
> ui-helper-clearfix">
>     <span class="ui-dialog-title" id="ui-dialog-title-creerDialog">création
> d'un résident</span>
>     <a href="#" class="ui-dialog-titlebar-close ui-corner-all"
> role="button">
>       <span class="ui-icon ui-icon-closethick">close</span>
>     </a>
>   </div>
>   <div style="height: 143px; min-height: 13px; width: auto;"
> id="creerDialog" class="ui-dialog-content ui-widget-content">
>     <form id="form1" action="">
>       ...
>     </form>
>   </div>
>   <div class="ui-dialog-buttonpane ui-widget-content ui-helper-clearfix">
>     <button type="button" class="ui-state-default
> ui-corner-all">Sauver</button>
>     <button type="button" class="ui-state-default
> ui-corner-all">Effacer</button>
>   </div>
> </div>
>
> Notice how the element on which you called .dialog(), #creerDialog, now has
> the 'ui-dialog-content' class, and is inside a new element with the
> 'ui-dialog' class.
>
> If you get to this point and still have an issue, please let us know.
> Thanks.
>
> - Richard
--~--~---------~--~----~------------~-------~--~----~
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=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to