Tuesday, February 27, 2007

Ext and AjaxPro

I have posted two samples showing how to combine Ext and AjaxPro with the help os some custom classes I have developed.Go to the Javascript category of my samples menu to see it.

Note on the codeplex project: since ext is still in aplha I wont release a new control anytime soon.





powered by performancing firefox

Monday, February 26, 2007

Alpha 2 of Jack Slocum's Ext 1.0 UI library for jQuery Now Available

The alpha 2 release of Jack Slocum's Ext 1.0 for jQuery is available for download. This is an important release as it officially decouples YUI from Ext and makes Ext 1.0 a standalone project. Users will now have a choice between leveraging the fast, compact and lightweight jQuery Ajax library or the well-documented and robust YUI library.



read more | digg story

Thursday, February 22, 2007

Ext 1.0 is out(alpha)

Ext 1.0 alpha is out and now I have a lot of work to do.Here is my priority list

1)Update the samples at my website to use the new grid.

2)Update the codeplex project code to use the new grid.

3)Make samples for the TreePanel and put then at my website

4) Implement the treepanel in yui-ext controls and see if there is any other new control I can implement.

The update on my site is already in progress...but there are very complex samples and very few documentation.But as soon as I update my site, updating the control js code will be a breeze.







powered by performancing firefox

Friday, February 16, 2007

Samples

The Barchart sample in my website is now working in IE and Firefox.

I don't know if it supports other browsers. The lineChart sample has to be perfected to Firefox...

The secret to get the chart working in Firefox is the content-type to

image/svg+xml. In .net you can set this with this code in Page_load method.

(Request.Browser.Browser != "IE")

{

Response.ContentType = "image/svg+xml";

}









powered by performancing firefox

Tuesday, February 13, 2007

Ext 1.0 to be released on monday

I just read on yui-ext forum that Ext 1.0 its scheduled to be released on monday (19). As many of you probably know I am Brazilian and in Brazil next week is "Carnaval" and that means I will start working on that week on the 22.So expect me to release the new yui-ext controls extender only in march.

I do hate "Samba", but I love the long holiday....





powered by performancing firefox

Thursday, February 08, 2007

Zip files programatically

In this blog there is a post showing how to zip and unzip files with the help of J#. Well you don't have to do that you can use SharpZipLib.

There is a sample on my website showing how to create a zip file on the fly.

click here to see it.







powered by performancing firefox

New sample based on post on yui-ext forum

There is a new sample at my website that show a very early graph library for yui-ext.

For now the sample doesn't work in Firefox ..but still worth it.

I will update my barchart class to use this as a base ..

Here it is ..enjoy



powered by performancing firefox

Wednesday, February 07, 2007

New sample

Today a posted a new sample at my site.It shows how to to an "EditInPlace" with yui-ext. The code is based on a post at the yui-ext forum.
click here to see the sample.
Suggestions and comments are welcome.

powered by performancing firefox

Thursday, February 01, 2007

How do I persist a TreePanel?

Ext its not out yet but here is the code:



YAHOO.ext.tree.TreePanel.prototype.toJsonString=function(){
var nodes=this.getRootNode().childNodes;
this.arrNodes=[{id:this.getRootNode().id,parent:0}];
for(var i=0;i< nodes.length;i++){
this.arrNodes.push({id:nodes[i].id,parent:this.getRootNode().id});
this.processChildren(nodes[i]);
}
return YAHOO.ext.util.JSON.encode(this.arrNodes);
}
/*
Recursive function
sweeps the tree in all levels
*/
YAHOO.ext.tree.TreePanel.prototype.processChildren=function(node){
child=node.childNodes;
for(var i=0;i<child.length;i++){
this.arrNodes.push({id:child[i].id,parent:node.id});
this.processChildren(child[i]);
}
}




It returns a jsonString with an array of objects with the tree nodes and its parents reflecting the changed tree. When Ext comes out I will build a complete sample persisting that output to a database.





powered by performancing firefox