Tuesday, January 27, 2015

change the color of scrollbars

Standard


add this in your style .css  to change the color of the scrollbars on my pages in Internet Explorer and Firefox

::-webkit-scrollbar {
width: 12px;
height: 4px;
background: rgba(111, 78, 78, 0.35);
}
::-webkit-scrollbar-thumb {
background-color: rgba(145, 36, 66, 0.99);
-webkit-border-radius: 1ex;
}

Wednesday, January 21, 2015

Add Ajax in Grid view YII

Standard


Here is simple example to how create  Ajax link on YII CGridview


array(
        'name'='Attribute name',
        'header'='Attribute title',
        'value'='CHtml::ajaxLink(
            "link",
             array("url/action"),
              array(
              "update"="#Ajaxvenu",
                 "type"="POST",
                     "data" =; array(
                     "POST[atttribute]" = $data->atttributename,

                       ),                              
                   ),

 )',

// view this