Archive for the ‘programming’ Category

jsContract – Code contracts for Javascript

I have recently started using code contracts in one of my .net projects and I came to think that since most of the code I produce these days are in Javascript, why don’t I try it there to!
Well, easier said than done – there just is no decent frameworks for this.
During my searching I found [...]

Posted by oyvind.kinsey on February 3rd, 2010 under jsContract, programming Tags: , , ,  •  4 Comments

easyXDM just became even easier to use!

To accommodate older browsers that does not implement the postMessage interface, easyXDM is able to fall back to using the URI fragment trick, and until now this has meant that the provided hash.html file had to be uploaded to the local domain (the ‘calling’ domain).
This seems to be a dealbreaker for many as they are [...]

Posted by oyvind.kinsey on January 2nd, 2010 under easyXDM, programming Tags: , ,  •  No Comments

Modifying privileges stored binary using ExtJs

In an earlier post I showed you how to use binary operators to store multiple privileges/settings in a single integer field. Now I will present to you a simple control for visualizing and modifying such a value.

Posted by oyvind.kinsey on November 17th, 2009 under programming Tags: , , , ,  •  No Comments

Storing multiple privileges/settings in a single integer

In many applications you have the need to set users privileges , and while there are many ways to do so, I prefer to using a single integer value to store a users privileges on any single entity.
This has many advantages,

you only have a single value representing all privileges
you can add and remove available privileges [...]

Posted by oyvind.kinsey on November 17th, 2009 under programming Tags: , , ,  •  3 Comments

How to restrict your web app to a single instance

When building complex web applications it is often necessarry to restrict the user to keeping only a single instance open, and to do this you need to check for the precense of an existing instance, either directly or indirectly.

Posted by oyvind.kinsey on November 15th, 2009 under programming Tags: ,  •  No Comments

Upcoming book review – “Ext JS 3.0 Cookbook”

The nice people at Packt Publishing has asked me to do a book review of  Jorge Ramons “Ext JS 3.0 Cookbook“.
According to the book description the following subjects will be covered

Work with different browsers, platforms, and the DOM, as well as determine and understand the different ExtJS data types
Create your own custom Ext JS data [...]

Posted by oyvind.kinsey on November 11th, 2009 under programming Tags: , ,  •  No Comments

Widget support added to easyXDM!

The newest version of easyXDM (v1.5.3) now includes two new classes, the easyXDM.WidgetManager, and easyXDM.Widget.
These make it extremely easy to make mashups based on the subscribe/publish architecture.

Posted by oyvind.kinsey on September 6th, 2009 under easyXDM, programming Tags: , ,  •  No Comments

easyXDM – extremely easy cross-domain scripting

easyXDM is a javascript library that uses available techniques to provide a means of transporting messages and/or method calls between windows in different domains, in short, by-passing the same-origin policy and letting you call methods across the domain boundry.
This is perfect if you plan to provide a client-side API (e.g Facebook Connect) on your web [...]

Posted by oyvind.kinsey on August 20th, 2009 under easyXDM, programming Tags: , , , , , ,  •  43 Comments

easyXSS

Please see easyXDM for updated info!
I’ve just completed the first version of my cross-site scripting library easyXSS. It is available at http://code.google.com/p/easyxss/ under a MIT-license.
As it is now it supports simple messaging between windows of different domains, but it also supports proxying method calls and results between them making it well-suited for creating API’s.
I’ve prepared [...]

Posted by oyvind.kinsey on June 24th, 2009 under Uncategorized, easyXDM, programming Tags: , , , ,  •  6 Comments

Ext Calendar

I just remembered that I had made a decent Ext based calendar (extending Ext.Panel).
You can view a demo of it here.
The calendar supports loading data through a Ext.data.Store, d’n’d of timespans, events for handling d’n’d, editing etc.

Posted by oyvind.kinsey on February 27th, 2009 under Uncategorized, programming Tags: ,  •  10 Comments