Javascript

Test drive ProtoUI

May 27th, 2008  |  Published in General, Javascript, ProtoUI, Prototype, Scriptaculous, UI

Well we have been recieving a lot of emails since our last post regarding the UI library. We decided to provide an early access to some of the tests for the library and documentation around it. There is a lot of work still to be done and we hope to steer the project according to the feedback we recieve.

You can check out demos and docs here.

Feel free to post your comments/suggestion here.

ProtoChart - Create charts using Prototype and Canvas

May 22nd, 2008  |  Published in Javascript, Projects, ProtoChart, Prototype

Well this isn’t the first library to do this and it won’t be the last. Its not even 100% ready for release but I thought it will be great to get some initial feedback before even releasing any code.

This library (as mentioned in my last post) is heavily motivated and inspired by Flot (a jQuery based plotting library). Its not complete yet and its not that stable yet. So you might see few odd things happening here and there.

You can check out some tests here.

As always, please do give your comments and suggestions but do note that this is just something that I have been working on in my spare time so my replies might be a bit slow and your requested feature might not show up in the code fast enough. But it will be noted and implemented sooner or later.

What’s keeping us busy?

May 21st, 2008  |  Published in General, Javascript, Prototype, UI

Apart from the usual clientel work, we are working hard to bring our UI library to a stable release. A lot of work has been done and a lot more needs to be done. So keep checking the blog for latest updates on that.

This past long weekend (for us canadians) I decided to experiment with canvas and javascript. The reasonable thing to do was to build a simple charting script. After few hours of work and inspiration from Flot (jQuery plotting engine) here is the result:

Plot

Of course, this is completely based on Prototype and it supports the basic line chart, scatter plot, bar graphs and maybe next weekend I will add pie chart support to it. The code is still a bit messy so I won’t be posting it right now. I will probably wait till I am done with pie chart support before release an alpha and let you folks test it out.

So yeah a lot is going on but that doesn’t mean we don’t have time to chit chat with others. Feel free to throw us an email if you want to discuss about your next project or if you just want to say hello.

ProtoUI - User Interface Lib (Prototype/Scriptaculous)

May 7th, 2008  |  Published in Javascript, Prototype, Scriptaculous, UI

Well its about time that we told you guys more about the User Interface Lib that we have been working on. Its far from being production ready but since we aim to launch it as an open source project we thought it might be useful to start getting some input from the community.

You can read initial docs but please note that documentation will be changing without any notice. You can also check out demos here.

User Interface Library - Prototype and Scriptaculous

April 8th, 2008  |  Published in Javascript, Projects, Prototype, Scriptaculous, UI

Lately I have been working on a User Interface library that runs on top of Prototype and Scriptaculous framework. Please note that this library is in very early stage and I am planning on releasing the source code soon. Still have a lot of issues to fix and address but I wanted to float the idea in public and get wheels rolling.

So what does this UI library have?

This library will have the following components:

  • Layout
  • Splitter
  • Panel
  • Button
  • Menu
  • Tab
  • Tree
  • and more…

These will be the foundation layer components. With support of Prototype based class inheritance I have also been working on some widgets such as:

  • CheckBoxTree
  • AjaxTree
  • AjaxPanel
  • ButtonMenu
  • ContextMenu
  • Toolbar
  • Accordion
  • and more…

As mentioned earlier I am still working towards first public preview release but if you have any suggestions or comments please feel free to post them here. I should have a first public preview ready for you soon (can’t promise dates yet)

This library is in no-way meant to compete against ExtJS or Dojo or other such libraries but I believe that with community support we can bring an amazing UI layer to Prototype and Scriptaculous framework.

The main focus is to provide solid foundation layer and believe that our community will build and contribute amazing set of Widgets.

Here are screenshots for Button and Splitter (using Firefox 2.0)

UI.Button

Splitter

ProtoFlow - Now supports Keyboard and Mouse Wheel Events!

March 31st, 2008  |  Published in Javascript, Projects, ProtoFlow, Prototype, Scriptaculous

Well it doesn’t get any better than this. I have been over whelmed by the response that community has given to ProtoFlow. While I am still working to fix some issues with image positioning, Fabian and  Martin posted a add-on for keyboard and mouse wheel support. After integrating their code I had to release it to general public asap. Thank you guys for your contribution.

By default both keyboard and mouse wheel support is turned on. To turn keyboard support off you can set options: enableKeyboard to false and to disable the mouse wheel events just turn enableMouse to false. Notice how the mouse wheel effect only works when your mouse is over the ProtoFlow object.

The latest code should be up here.

Small update to ProtoFlow.

March 26th, 2008  |  Published in Javascript, Projects, ProtoFlow, Prototype

I have released another small update to the script. It has now been tested in IE6 and IE7 along with Firefox 2.0 and Safari. I have also added docs to the project.

I think this script should be in stable condition now. If you stumble upon any bugs or have any suggestions please post them in your comments to this thread.

You can find the latest version for download here.

Nitobi AJAX survey

March 24th, 2008  |  Published in Javascript

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

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.

ProtoFlow Updated - Better Captions & Image Reflection!

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

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