I did something similar to iAds, but with possibile prefix (if two
parameters have same name).
I also tend to put options in separate js objects like this:
var columns = [
{ 'klasaTh': 'data', 'klasaForm': 'data d-date', 'nazwa': 'Data',
'nazwaPola': 'Data_zaplaty'},
{ 'klasaTh': 'data', 'klasaForm': 'data d-date', 'nazwa': 'Zakres
od', 'nazwaPola': 'Data_zaplaty_od' },
{ 'klasaTh': 'data', 'klasaForm': 'data d-date', 'nazwa': 'Zakres
do', 'nazwaPola': 'Data_zaplaty_do' }
];
var lastPos = [
{'x': '40', 'y': '2' }
];
then it is easy to save them or load from database for each user or
app.
I also created template system which bases heavily on iAd like
parameters ;)
Have to look into Aaron Behaviors and filters...
thanks,
On Dec 30, 3:52 pm, Thomas Aylott <[email protected]> wrote:
> Ahoy,
> Dojo, Apple iAds as well as Adobe Flex and a million others
> have created simple declarative APIs that you can use in your HTML.
> This lets you basically replace your app.js or page.js code and get rid of
> the massive domredy scripts you see people use all the time.
>
> Instead there’s a single parser that runs on domready that looks for elements
> with special attributes and then instantiates all your classes for you based
> on the attributes declared in your HTML.
>
> The goal is to allow your JS-n00b co-workers to ‘code’ without screwing up
> your lovely JS and making massive rats nests that you’ll have to clean up
> later. There are other goals too ofcourse.
>
> So… What syntax do you guys like?
> If you have other suggestions please fork and add!
>
> https://gist.github.com/759332
>
> — Thomas Aylott – SubtleGradient – MooTools – Cloudera —