add

Tuesday, September 13, 2011

extend flexigrid


It's quite easy to understand, what's the magic behind
flexigrid, so I am not a afraid of not beeing able to update, since my
flexigrid at least twice as powerfull as the original one... In Germany we
say "Kosten Nutzen Rechnung", dunno if the translation "Costs and Benefits
Calculation" will point it out...

But here's something for you!! You can extend any jquery plugin easyly by
using the correct extender-function.

look at the end of the flexigrid.js. here you will find several extentions,
the author already implemented. Just Copy-Paste one of them, change the name
und the method, that will be called... add private method to flexigrid..

Example:

$.fn.flexReload = function(p) { // function to reload grid

        return this.each( function() {
                if (this.grid&&this.p.url) this.grid.populate();
            });

    }; //end flexReload

This function should be in your flexigrid.js already.  Copy that and paste
it like this:

$.fn.flexMyExtendedFunc = function(p) { // function to reload grid

        return this.each( function() {
                if (this.grid&&this.p.url) this.grid.myprivatefunction();
            });

    }; //end flexReload

Now, search for the function "populate" ... you'll find something like this:

populate: function () { //get latest data
                if(p.loadingIndicatorFunc)
                    p.loadingIndicatorFunc(true);
                var g = this;

[....]

Again.. Copy paste the whole function and rename it to "myprivatefunction"
and, of course, change the code inside the function.

You can pass parameters as well!

And now you may ask, how to call this function??

very easy!

Let's says, you have a " <table id="myFlexTable"/>∓lt;/table&gt;



You did   "$("#myFlexTable").flexigrid(...); somewhere...

Now just call  $("#myFlexTable").flexMyExtendedFunc();" 
and the code INSIDE the flexigrid ("myprivatefunction") will be executed. You have full control
in here... you can access all variables, the flexigrid uses...

And what about updating?

If you really JUST add a new extension method AND ONLY add methods to the
flexgrid-plugin, you can easyly copy-paste them to a new version.... That's
how I would do it... Anyway, trust me, if you ll get to understand the code,
the other way - adding updates via copy-paste to your version of flexigrid,
might be a lot faster...

Hope that helps some people out there, who try to expand the flexigrid.

Source code http://flexigrid.info/

Monday, September 12, 2011

How to install LAMP (Apache, PHP and MySQL in Linux) using Yum - Techie Corner

How to install LAMP (Apache, PHP and MySQL in Linux) using Yum - Techie Corner: "Below are the steps to install LAMP (Apache, PHP and MySQL in Linux) using Yum:-

Open a terminal (if you are using X-Window), and type
   yum install httpd 
and follow on screen instruction to install apache web server
Once apache web server has been installed, type
yum install php
Once PHP installed successfully, type
yum install mysql-server mysql php-mysql


Once everything finish,
you can do all the above steps in a single command like
yum install httpd php mysql-server mysql php-mysql
type
service httpd start  
to start your apache web server, screen will show you if web server service successfully started
type service mysqld start 
to start your mysql server"

'via Blog this'

Cross domain ajax calls

http://www.ajax-cross-domain.com/

Friday, September 9, 2011

Flexigrid

Flexigrid:

Lightweight but rich jquery  php data grid with resizable columns and a scrolling data to match the headers, plus an ability to connect to an xml based data source using Ajax to load the content.
Similar in concept with the Ext Grid only its pure jQuery love, which makes it light weight and follows the jQuery mantra of running with the least amount of configuration.

Thursday, August 18, 2011

20 Years of Linux [Infographic]


Linux celebrated it’s 20th birthday this week. During these twenty years Linux has evolved remarkably from an ordinary computer application that could do nothing much than bootin-up a computer to now a full scale and highly featured operating system, which is still free.

Linux Foundation, at the occasion of it’s birthday, released following infographic which pretty much shows the transition that Linux has undergone during the years.

At the end there’s a video as well – to better understand the concept of Linux, just in case if aren’t aware of it’s business rules.


Tell Us: Do you think you are Being Trapped by Google?

Google has become an essential part of our online lives. Gmail, Google Docs, Search Engine, Feed Reader, Maps, Google Earth, YouTube and What Not?

I am not doubting the ease this single company has brought to our lives, but at the same ever you thought that Google stores all the activities you do on internet, for instance, what searches you did, emails you send, your mobile number and much much more – there is a huge list we can make. For a sneak peak, find out what information Google stores about you by clicking this link: https://www.google.com/dashboard/

There are good chances that Google knows that you are looking for admission in a medical college in Abbotabad, or maybe it knows well that you are preparing a research report on a particular topic for your degree project or even it may know your medical history as well.

Instead of commenting further – we want to hear from you in comments, and question is

“Ever you thought that Google knows too much about you? If not, are you thinking the same now? What’s in your mind – say it” (Silent Readers are also requested for input)

Expect a follow up post on the same topic – but first, we want to listen you.