[Proto-Scripty] Re: What do you think of this software-architecture?

2011-03-22 Thread shubhojoy
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

[Proto-Scripty] Re: Parse html

2011-04-05 Thread shubhojoy
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

[Proto-Scripty] Re: Prototype Vs. JQuery

2011-05-01 Thread shubhojoy
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

[Proto-Scripty] Re: Prototype's evolution

2011-07-13 Thread shubhojoy
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

[Proto-Scripty] Re: getStyle z-index

2011-08-12 Thread shubhojoy
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

[Proto-Scripty] Re: Prototype Json Editor

2011-08-17 Thread shubhojoy
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

[Proto-Scripty] Re: Effect.Morph zIndex style not working

2011-08-23 Thread shubhojoy
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