[Dojo-interest] Floating dialog

Bill Keese bill at dojotoolkit.org
Thu Apr 20 08:51:54 MDT 2006


Most of the widget unit tests are HTML, not XHTML.  What tests are you 
looking at?

You can use XHTML or HTML as you like, but you have to put the right 
headers on the top of your file.

Jon Sykes wrote:
> In all honesty I don't think anyone using Dojo will be using HTML4.0 
> specs.  All of the widget unit tests seem to have XHTML Strict.
> 
> XHTML Transitional is pretty much a minimum these days...
> 
> "Empty elements must either have an end tag or the start tag must end 
> with />. For instance, <br/> or <hr></hr>."
> 
> http://www.w3.org/TR/xhtml1/#h-4.6
> 
> 
> Jon Sykes
> 
> 
> On Apr 20, 2006, at 9:31 AM, Bill Keese wrote:
> 
>> Here's the standard for <input>
>>
>> http://www.w3.org/TR/html4/interact/forms.html#h-17.4
>>
>> As you can see, you close with >
>>
>> You are probably thinking of XML or XHTML, but your document is 
>> declared as HTML.
>>
>> Jon Sykes wrote:
>>> That's not standards compliant.
>>> Is there a reason why you have to do it that way?
>>> Jon Sykes
>>> On Apr 20, 2006, at 8:25 AM, Bill Keese wrote:
>>>> Don't write /> at the end of input.  Just use >
>>>>
>>>> yann wrote:
>>>>> Hi all !
>>>>> Dojo is a very interesting toolkit, and miracle it offers all i was 
>>>>> looking for !
>>>>> So, there is a mistake when I want to build a dialog (windows that 
>>>>> is modal) an put inside a floating pane (I aim to let the user move 
>>>>> the dialog wherever he wants)
>>>>> So, there is a piece of my code (it’s just a test sample code !) :
>>>>>  <div id="D1" dojoType="Dialog" bgColor="white" bgOpacity="0.6">
>>>>>                           <div dojoTYpe="FloatingPane"
>>>>>                                                id="F1"
>>>>>                                                title="Modal Dialog 
>>>>> box"
>>>>>                                                style="width: 500px; 
>>>>> height: 300px; border: 1px solid;"
>>>>>                                                contentWrapper="layout"
>>>>>                                                
>>>>> constrainToContainer="false">
>>>>>                                                            <input 
>>>>> Type="submit" name="cancel" id="cancel" value="Cancel" 
>>>>> onClick="closeDialog();return false;"/>
>>>>>                         </div> <!- FloatingPane -->
>>>>> </div><!- Dialog -->
>>>>>   So, the dialog can be moved à no problem !
>>>>> But, the content is either invisible (the input button is hidden 
>>>>> below the title bar), or look strange (say, the title bar’s width 
>>>>> is shrinken)
>>>>>  It seems that dialog can’t contain other “DIV” ?? Anyone has an 
>>>>> idea ?
>>>>> ------------------------------------------------------------------------ 
>>>>>
>>>>> _______________________________________________
>>>>> Dojo FAQ: http://dojo.jot.com/FAQ
>>>>> Dojo-interest at dojotoolkit.org
>>>>> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>>>>
>>>> --Bill
>>>> _______________________________________________
>>>> Dojo FAQ: http://dojo.jot.com/FAQ
>>>> Dojo-interest at dojotoolkit.org
>>>> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>>>>
>>> _______________________________________________
>>> Dojo FAQ: http://dojo.jot.com/FAQ
>>> Dojo-interest at dojotoolkit.org
>>> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>>
>> -- 
>> Bill
>> _______________________________________________
>> Dojo FAQ: http://dojo.jot.com/FAQ
>> Dojo-interest at dojotoolkit.org
>> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>>
> 
> _______________________________________________
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo-interest at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-interest

-- 

Bill


More information about the Dojo-interest mailing list