Storing data in arrays is a pretty common technique throughout various programming languages, and it’s very straight forward. Until you get to reading them, sorting, filtering and mixing them. A lot of times you have more complexity in your data and filtering them is a very usual task.
Almost every toolkit has some functional approaches to make this easier and the latest JavaScript versions also implement some of them natively. Here I will show two use cases for filtering an array of objects, different approaches and their consequences.
(more…)
At the Ajax in Action we had four talks. Nikolai spoke about “Dojo and Adobe AIR” where he showed on an example how well dojo and AIR integrate. The second was “RIA/UI development with Dojo”, where he showed all about how the new layouting widgets in dojo 1.2 can be efficiently used. One talk I gave was “Efficient JavaScript Development”, where I tried to show a couple of tools, strategies, tips and tricks of how to develop JavaScript code efficiently and make it less pain. The second was “Scaling AJAX apps”, where I showed some concepts and ways to make your AJAX app fast and scale better.
(more…)
Just one week to go and we are glad that all three of us will make it to the Ajax in Action 2008 in Mainz (Germany). So if you like to contact us, meet in person or just have a chat (besides the virtual reality) let’s do it. If you are interested in JavaScript as we are, want to have an in depth dojo discussion, feel like you need to know more about dojango or just would like to talk AJAX with us, do it! We are looking forward to it.
Of course we will have some stuff to share, we are going to hold four talks RIA/UI development with Dojo, Adobe AIR and Dojo, bringing the web to the desktop from Nikolai and Architectures for scaling AJAX apps and Efficient AJAX/JavaScript Development from me.
(more…)
Now it’s almost a week ago, and I still haven’t written the more in depth article about the BarCamp Munich 2008, here it comes. As I have already said, the organization was great, first and foremost the people behind it, thanks a lot. But also Sun who provided the location and last but not least all participants. I will be there next year again, I am sure!
(more…)
How many times do we need to disable a button after sending a xhr call or submitting a form?
Almost everytime, the element which induces a data transfer, should be disabled until you get a reply from the server.
I’ve written a short and simple extension of the “dijit.form.Button” widget called “dojox.form.BusyButton”, which provides a simple API to let you deal with those cases when you don’t want to allow the user to hit the submit button a second time. (more…)
I don’t remember which IDE it was that made me learn to use the shortcuts (may be Turbo Pascal back then), and (almost) since then I am too lazy to learn new shortcuts. Now I always first customize the keyboard shortcuts.
And already for a long time I am missing Ctrl+D/Apple+D for Komodo Edit which I use for editing JavaScript, CSS and HTML. This shortcut is supposed to duplicate either the current line or the entire selection. To make a long story short, here is the screencast video (1:04 min) that shows you how to apply the macro shown below.
(more…)