Thursday, November 27, 2014

Yii Gridview CButton style

Standard
This  code shows about how to add a custom button with your own icon for your CGridView of Yii framework.“view”, “update”, “delete” button and it have corresponding actions. We can change it using CButtonColumn properties. widget('zii.widgets.grid.CGridView', array( ...

Sharp AQUOS Android Smartphone

Standard
Sharp Corporation collaborated with frog's team of designers and technologists to create “Feel UX”, a new Android smartphone experience that is easy to use, highly personalized, and visually stunning. STUNNING 3D REALISM ON SCREENThe AQUOS Phone's parallax barrier system—which imitates...

Get Country of IP Address with PHP

Standard
I'm trying to put together a PHP script that I can query from any web browser and it returns the Country of the IP address that accessed the PHP script There are various web APIs that will do this for you. Here's an example using http://ipinfo.io: $ip = $_SERVER['REMOTE_ADDR']; $details...

Wednesday, November 26, 2014

create div stick to top when scrolled

Standard
There are times when you would want to display a DIV bar at the top of the page when your scrolls on the page top or down  and it should go back to its original position when the user scrolls back up. jQuery code: / executed when the viewr scrolls the page. $(window).scroll(function(e) { // Get the position of the location where the scroller starts. var scroller_anchor = $(".scroller_anchor").offset().top; ...

website's content on the Twitter wall Yii

Standard
Add buttons to your website to help your visitors share content and connect on Twitter.   a class="twitter-share-button" href="https://twitter.com/share" data-url="http://web/git/streamline/index.php/listings/ListingId; ?>" !--data-url="theme->baseUrl;?>/index.php/listings/ListingId;...

website's content on the faebook wall Yii

Standard
post my website's content on the faebook wall. who want to share it. <pre class="java" name="code"><div id="fb-root"> </div> <script>(function(d, s, id) {   var js, fjs = d.getElementsByTagName(s)[0];   if (d.getElementById(id)) return;   js = d.createElement(s);...

Sunday, November 16, 2014