Posts Tagged "extcore"

ExtBox: An Extcore lighbox plugin

July 6th, 2010 by aditia rahman / 1 Comment  

     

Yesterday I googling some tutorial about extcore, sure it is not easy to find example using extcore since the jquery is very popular and maybe some other time I will use jquery too, but the great thing is I found ExtBox, and in this very sort post I want to share it with you. ExtBox is an Extcore Plugin to create customizable light box, it is very light weight and the demo provide variety of LightBox themes, just chek it out the ExtBox

extbox_pirobox-style

Create Spy With ExtCore

July 6th, 2010 by aditia rahman / No Comments  

     

This post is a sort post describing how to create simple spy, if you don’t know what the spy yet, check the digg spy, that is very cool infographic to displaying updated content from it users, but when this post is created digg using flash technology to pooling data from the server, but this post using extcore to pooling data from the server, and the code is not really have big different from my previus post, I just create single file and include one js file (it’s the extcore.js file of course), that file i called “index.php”, now here we go.

Load Content Scroll Using EXT Core and PHP

June 22nd, 2010 by aditia rahman / No Comments  

     

Extcore is one the Extjs product, but the company name now called sencha, read this why extjs changes their name. If you using full stack Extjs source the Extcore must be included in the source, in this post I want to show how to load content while window scroll from the server using Extcore, this feature maybe useful when users want to see more data than visible on the screen maybe like facebook wall, actually this post is similar to another post i found, but using jquery (they are in 9lessons.info and webresourcesdepot.com), in this example i’m just using one file and the data is hardcoded from array

So lets start, here’s the php code

<?php

$data = array(
    0 => array('post' => 'Post Number 0')
);

for ($i=1; $i<=50; $i++) {
    $tmp_data = array(
        $i => array('post' => 'Post Number ' . $i)
    );
    $data = array_merge($data, $tmp_data);
}

// get next 10 row data,
if (isset($_GET['act'])) {
    $start = ($_GET['page'] * 10) + 1;
    $finish = $start + 10;
    if ($finish <= count($data)) {
        echo '<div class="data newhead">Loaded Data &darr;</div>';
        for ($i=$start; $i<$finish; $i++) {
            echo '<div class="data">'.$data[$i]['post'].'</div>';
        }
    } else {
        echo 'stop';
    }
    exit;
}

?>