I have been developng pretty much the same thing as a MVC architecture
for my webapps and sites too. It works pretty well although I have
managed to hang the browser owing to my own mistakes mostly. The worst
part is when you see that "Unresponsive script" thingy in FF. But I
think it's usually bad
It's interesting to read this discussion. Around the same time last
year I found JSON a much better alternative in the client side as
everyone will agree I am sure. I also wrote a custom rendering
prototypeJS class to interpret the JSON data into rich HTML objects
like layers, links, etc. At the se
This has been a troubling question ever since I started working with
PrototypeJS (2006) and then discovered JQuery, etc.
Somehow, for reasons of my own, I like PrototypeJS far better. I think
the appeal of JQuery is in it's documentation. I think they make it
somewhat idiotproof, and their site lo
I feel exactly like you, but I guess there'll always be some
prototypejs diehards (like me!). I tried out a little of JQuery and
frankly didn't like it in spite of it's... um... sex appeal. I also
went on to investigate other APIs like UIze, etc. Again I think they
all might have some good qualitie
You use the camel case to get the z-index like so:
myElementZ = $(myElement).getStyle(zIndex);
Also, sometimes it can be a pain to realize that myElementZ is not an
integer. So, a parseInt(myElementZ) should guarantee that it can be
used for further calculations.
Not sure why you want to obtain
I usually use backend PHP json_encode to transform data (in arrays) to
JSON.
I also have a class to convert XML data into arrays that can be easily
translated into JSON using json_encode. Works very well for me.
At the front end, you can see JSON data represented in a tree format
with Firebug. Th
I don't know if this will help, but whenever I want to place any
element (div) on the top, I frequently obtain the current topmost
value of zindex and then add 1 to it.
currentMaxzIndex = $$("div").invoke("getStyle", "zIndex").max();
newTopmostzIndex = parseInt(currentMaxzIndex) + 1;
console.log(c