Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Hide and show
<?php YsJQuery::usePlugin(YsJQueryConstant::PLUGIN_JLAYOUT); ?> <button id="btnOpenDialog">Show Demo</button> <?php echo YsUIDialog::initWidget('dialogId','style="display:none" title="Basic dialog"') ?> <?php echo YsJLayout::initBorderlLayout(array(YsJLayout::HGAP => 3, YsJLayout::VGAP => 3) ,'style="width:99%; height:100%"' ) ?> <?php echo YsJLayout::initCenter('centerPanel', 'style="width:33%; height:50%"') ?> <input type="button" value="Hide - North" id="btnHideNorth"> <input type="button" value="Show - North" id="btnShowNorth"> <?php echo YsJLayout::endCenter() ?> <?php echo YsJLayout::initEast('eastPanel', 'style="width:33%; height:50%"') ?> East <?php echo YsJLayout::endEast() ?> <?php echo YsJLayout::initWest('westPanel', 'style="width:33%; height:50%"') ?> West <?php echo YsJLayout::endWest() ?> <?php echo YsJLayout::initNorth('northPanel', 'style="width:100%; height:20%"') ?> North <?php echo YsJLayout::endNorth() ?> <?php echo YsJLayout::initSouth('southPanel', 'style="width:100%; height:10%"') ?> South <?php echo YsJLayout::endSouth() ?> <?php echo YsJLayout::endBorderLayout()?> <?php echo YsUIDialog::endWidget() ?> <?php echo YsJQuery::newInstance() ->onClick() ->in('#btnOpenDialog') ->execute( YsUIDialog::build('#dialogId') ->_modal(true) ->_resizable(false) ->_width(600) ->_height(500) ,YsJLayout::build('.border') ); echo YsJQuery::click()->in('#btnHideNorth') ->handler(YsJLayout::hide(".border", "#northPanel",YsUIConstant::BOUNCE_EFFECT))->execute(); echo YsJQuery::click()->in('#btnShowNorth') ->handler(YsJLayout::show(".border", "#northPanel",YsUIConstant::BLIND_EFFECT))->execute(); ?>