jQuery UI Widgets Forums Layouts DockPanel Dock attribute unknown

Tagged: 

This topic contains 5 replies, has 4 voices, and was last updated by  Peter Stoev 10 years, 9 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • Dock attribute unknown #48786

    Makla
    Participant

    I get warning in ZendStudio: Undefined attribute name (dock) in all three lines:

    <div id='jqxDockPanelLivingRoom'>
    	<div dock='left'></div>
    	<div dock='top'></div>
    	<div dock='top'></div>
    </div>

    I think that this attribute is not valid for html5. Do I have another choice?
    W3 validator also report error for dock attribute.

    Dock attribute unknown #48822

    Peter Stoev
    Keymaster

    Hi Makla,

    No, there’s no other choice. The attribute is custom.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Dock attribute unknown #49331

    sirstruck
    Participant

    Makla, I think a way around this would be to set the attributes in jQuery before initializing the dock panel. So, change the HTML to something like this:

    <div id='jqxDockPanelLivingRoom'>
    	<div id='left'></div>
    	<div id='top1'></div>
    	<div id='top2'></div>
    </div>
    

    Then, use jQuery code like this:

    $('#left').attr('dock', 'left');
    $('#top1').attr('dock', 'top');
    $('#top2').attr('dock', 'top');
    $("#jqxDockPanelLivingRoom").jqxDockPanel();
    
    Dock attribute unknown #49369

    jenscski
    Participant

    In HTML5 there is a new data- attribute, is it possible to make the dockpanel support both the dock, and a new data-dock attribute?

    This way, when coding html5, you will actually create valid html5.

    Dock attribute unknown #49581

    Makla
    Participant

    Thanks for ideas.
    Valid html5 would be a nice feature.

    Dock attribute unknown #49613

    Peter Stoev
    Keymaster

    Hi Makla,

    Thanks. We are aware how to define attributes in HTML5.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.