Archive for September, 2008

Simple Dojo Grid

Hi Friends. I was working on a simple data grid using Dojo. Thanks to SitePen’s blogs. It was quite useful except for the fact that i messed up with the css and took some time to make over.

Dojo makes an intensive use of JSON and it’s really a brilliant idea which is evolving quite firmly. We are there to use JSON more in the future.

Try to deploy in any web server and make sure the Dojo, Digit and Dojox are in the path of this file which we deploy.

<html><head>
<script type=”text/javascript” src=”dojo/dojo.js” djconfig=”parseOnLoad: true, isDebug: false”>  </script>
<script type=”text/javascript” src=”dojox/grid/Grid.js”></script>
<style type=”text/css”>
@import “dojox/grid/_grid/tundraGrid.css”;
</style>

<script type=”text/javascript”>
var data =    [
[ '4001', 'SB', '19/10/1983', '19/10/1920' ],
[ '4002', 'SB', '20/10/1983', '20/10/1920' ],
[ '4003', 'FD', '21/10/1983', '21/10/1920' ],
[ '4004', 'FD', '22/10/1983', '22/10/1920' ]
];

var cell = { name: ‘Cell Name’ };
var subrow = [ cell ];
var view = { rows: subrow };
var structure = [ view ];

var subrow = [
{ name: 'Account Number' },
{ name: 'Account Type' },
{ name: 'Start Date' },
{ name: 'Expiry Date' }
];
var view = {
rows: [ subrow ]
};
var structure = [
view
];
var model = new dojox.grid.data.Table(null, data);
</script>

</head><body class=”tundra”>
<div id=”grid1″ dojotype=”dojox.Grid” autowidth=”true” model=”model” structure=”structure” class=”grid”/>
</body></html>

PS:- Try the latest Dojo version to avoid any mishaps.

Oho… This is not the way to go. Try dojo toolkit version 1.2 grid like given here

One problem regarding working on DOJO is the lack of documentation and heavy depencendy on search engines. This has been felt/discussed in many places. When i had to find the list of dijit widgets i could not get proper answers. Finally found this link: http://redesign.dojotoolkit.org/jsdoc/dijit/HEAD/dijit.form.

And do write in your comments when you try to populate grid using JSON or any other technique.

2 comments September 30, 2008

What does web 2.0 means to the users ?

This is one question which raises in my mind frequently these days. Every day there is a new startup and everyday the garage filled up with a new idea or a betterment sort. There is a truck load of information we can find across all the street corners of the web.

Has any one took hold of the market or does it need more time to evolve? Are we designing anything which centers society and social welfare? Do we really have time to explore new applications or are we wasting our valuable time before the PC.

One thing i could see is that there are lot of blogs made about many yet another web 2.0. How much the IT majors fund/invest on these startups? Does it open new IT oppurtunities? Does technology and application ideas flow parallel to complement each other?

How much time can we effectively(recommended) spend on a web 2.0 in an average? This question is irrelevant to the geeks or the developers. But it’s most relevant to the average consumer of the services of web 2.0.

There are more serious question waiting to be posted on these web 2.0 companies and service providers.

Add comment September 26, 2008

Broadband accounting

A post after a very long time. I was held up in my shifting of house from Chennai to Bangalore. I am happy that i managed to get the internet connection after 3 long weeks. I am happy about the reliance connection and the quality of service. Earlier i subscribed to tata indicom wireless internet unlimited download scheme but i that was not successful. Because there was no signal in my place or say the transceiver could make anything out of the air.

Then i took the advance back and tried reliance. It worked out pretty well and i am here now enjoying the service. I especially liked the accounting system. When we switch on the modem kind of device, it doesn’t take in to account for the service. This confusion i always had with airtel before. But reliance has made things quite straight forward. Only when i log into the system or network, i am accounted for the service. And another useful feature is the facility to monitor the plan and service usage which many providers dont provide. Esp. airtel made a big fuss out of this and they wanted us consumers to fill up a form. I never wanted to waste my energy to fill such forms. So i was reluctant with such a service earlier.

I hope my internet experice in the future will be in much more ease.

1 comment September 23, 2008


Blogroll

Category Cloud

ajax books Education free software linux Market opensource open standards OSS programming search servers services Uncategorized web

Archives