Nitobi AJAX survey

March 24th, 2008  |  Published in Javascript  |  1 Comment

Ajaxian posted the result from Nitobi AJAX survey. It is interesting to see the results from this survey. What caught my attention was the Javascript framework question.

What toolkits or frameworks are you using in your projects?

This was quite a different result than from our last survey.

  • jQuery: 144
  • Prototype: 143
  • Scriptaculous: 127
  • YUI: 99
  • Ajax for ASP.Net (Atlas): 91
  • Mootools: 65
  • Dojo: 63
  • ExtJs: 61
  • Nitobi: 61
  • Spry: 29
  • GWT: 19
  • JMaki: 6
  • Mochikit: 2

Even though I consider Prototype and Scriptaculous to be one framework (since you can’t run Scriptaculous without Prototype) it is interesting how many developers are using these frameworks. Honestly, I wasn’t surprised at JQuery being at the top, it is a very useful toolkit and so is Prototype. On the other hand, I was disappointed that YUI scored so low. I think YUI is a very well thought out framework that can really provide a very solid foundation for web applications.

What are your thoughts? What framework/toolkit do you use for your AJAX application?

Complete survey results can be found here.

How to surpress Firebug console on non-firefox browsers.

March 18th, 2008  |  Published in Firebug, Javascript  |  1 Comment

Firebug is the most useful Javascript debugging tool out there. Occasionally when doing a large piece of Javascript development I tend to use the console utility which cause other browsers (such as IE) to crash your script. So here is a small piece of code that I have found to be extremely useful in making other browsers immune to the errors. Simply add this at the start of your script and let the magic begin!

if (!("console" in window) || !("firebug" in console)) {
	var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
			"group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
	window.console = {};
	for (var i = 0; i < names.length; ++i) {
		window.console[names[i]] = function() {};
	}
}

I will be posting more Javascript tips in coming days.

Workspace

March 14th, 2008  |  Published in Projects, Workspace

Workspace is our little project that has been under some development for past 1 year. We launched a little preview a while back and had a great response - over 2400 users gave us exceptional feedback.

What do you do with all this feedback? Well we listen to the feedback and we quickly realized that we need to do some major work. Therefore, today we are announcing that we will stop sending out further beta invites  to our users. The reason is simple. We want to work hard to get the new features and updates integrated as soon as possible.

So what should you expect in our next release?

  • Better UI framework
  • Completely new editor
  • Better support for FTP and SFTP protocols
  • Support for SVN (and CVS)

These are just few of the new things we are currently working on. At this point we are not publishing any release dates but we will make an announcement soon - very soon!

Watch the stars from your browser

March 14th, 2008  |  Published in General, Google

This morning I read via Techcrunch about Google Sky. My first impression? WOW!

I have been into astronomy for a while now and it is amazing to see the complexity and beauty of our sky. On top of that I like how Google just brought a little preview of what Google Earth can do to our browsers.

If you have never seen up at the sky at night time or if you have wondered about the brightest star or other planets I recommend you to visit Google Sky

ProtoFlow Updated - Better Captions & Image Reflection!

March 13th, 2008  |  Published in Javascript, ProtoFlow, Prototype, Scriptaculous  |  62 Comments

March 17, 2008: I have updated the script again. It now supports <a> tags. More information can be found here.

After reading through comments on the original launch post I finally got a chance to update the ProtoFlow script for with latest changes.

It now has a better caption system. It now supports image Reflection!

Credit goes out to those who participated in original blog post with all the helpful comments and suggestions. I am using Reflection.js found here. Many thanks to the author.

So fellow developers/users as done previously please provide your feedback and comments.

You can find a better documentation here and code is located at the bottom of the page here

Wordpress theme reset issue.

March 11th, 2008  |  Published in Random, Wordpress  |  2 Comments

Alright, we have been facing this odd problem lately. Every now and then our wordpress theme would switch back to default. We have been looking into this issue and think that we have resolved it by editing wp-setting.php file and commenting out

validate_current_theme(); on line 270

But this is just a temporary fix. Anyone else out there who is experiencing similar issues?

ProtoFlow first preview release…

March 10th, 2008  |  Published in Javascript, ProtoFlow, Prototype, Scriptaculous  |  73 Comments

ProtoFlow has been updated!

It has been a few weeks since my last post. I got busy with few other client work and didn’t really get any chance to polish up the ProtoFlow widget. So in order to get things moving, I am releasing the code under opensource. I know that there are many talented developers out there who would like to contribute to the code and help us improve it.

So without further delay here is the demo page and the zip file

I look forward to your comments and suggestions.

Update:

Here is the markup for the actual widget:

<div id="protoflow">

<img src="imgs/DSCN0940_91360.jpg"/>

<img src="imgs/stimme_von_oben_187192.jpg"/>

<img src="imgs/Tropfen_1_Kopie_201721.jpg"/>

<img src="imgs/farbraum_012_147508.jpg"/>

<img src="imgs/IMG_4906_199357.jpg"/>

<img src="imgs/Tropfen_1_Kopie_201721.jpg"/>

<img src="imgs/Fries_201253.jpg"/>

<img src="imgs/Fries_201253.jpg"/>

</div><ul id=”protoCaptions” class=”protoCaptions”>

<li>Caption 1</li>

<li>Caption 2</li>

<li>Caption 3</li>

<li>Caption 4</li>

<li>Caption 5</li>

<li>Caption 6</li>

<li>Caption 7</li>

<li>Caption 8</li>

</ul>

You can now initialize the Widget (usually done on page load) via:



Event.observe(window, 'load', function() {

 cf = new ProtoFlow($("protoflow"), {captions: 'protoCaptions'});

});

The options that you can pass in are:

options = {

   startIndex: 2, //which image or stack should the widget focus on after init

   slider: true,    //show or hide the slider widget

   captions: false //do you want to show captions?

};

In fact, the actual “holder” for the images can be anything. You can have a UL with a bunch of LI’s and all those LI’s would be used to create the flow effect. Captions are held in UL (I wanted to use ALT attribute in the images to hold captions but I think this way we can create a ProtoFlow effect out of all sort of HTML elements. Give it a try!

Coming Soon:

  • Autoplay - There is some code there right now but its not perfect so that needs to be done for next iteration

Introducing ProtoFlow

January 24th, 2008  |  Published in Javascript, ProtoFlow, Prototype, Scriptaculous  |  4 Comments

ProtoFlow - CoverFlow effect (or similar to coverflow effect) using Prototype & Scriptaculous.

Over the past day or so, I have been working on this class based on Prototype and Scriptaculous libraries that simulate CoverFlow effect found in Apple products such as iTunes and now standard feature on Leopard. I am far from done but the idea is to play around and learn so I am not in a big hurry to finish it off completely.

What is ProtoFlow?

It is a very simple class that would allow existing websites to just plug-n-play and create CoverFlow effect instantly. Here are quick features that it currently supports:

  • Generic stack: Elements that are being displayed does not have to be images. They can be any HTML element. So if you have a UL with bunch of LI’s in it you can create CoverFlow for that. (more on this when I release the code)
  • Caption (optional): You can attach captions to every slide making any list of images an impressive slideshow instantly!
  • Slider: Slide throw your list using Scriptaculous slider class.

I will be releasing the code for this later on but do let me know if there are other features that you would like to have in this widget.

Here is a quick screenshot for you (click to enlarge):

ProtoFlow

Welcome to Deensoft

January 23rd, 2008  |  Published in Random

Hello readers!  This is a welcome post on our blog. If you want to know more about our company please visit our site.

On this blog we will be posting information from our development experience, our thoughts and ideas. This is meant to be a non-formal avenue to communicate with our readers.