[Proto-Scripty] method chaining syntax

2010-03-17 Thread Rob Aldred
to chain methods you have to do something like the following: $('element').previous().hide() this is different to: $('element').previous.hide() the second example doesn't work I wondered if there was a way to write it this way rather than the first... My understanding is that without the

[Proto-Scripty] Re: make the Tablekit library to sort with the current sort order after page refresh

2010-03-17 Thread albert kao
On Mar 15, 6:24 pm, Walter Lee Davis wa...@wdstudio.com wrote: Since the sort order is a client preference, I would imagine you could   stash the client's preferred order in a cookie and use that for return   visits. Otherwise, each visitor could override the previous visitor's   preference,

[Proto-Scripty] How to organize my ajax calls?

2010-03-17 Thread Joannes De KOSTER
Hello, I am trying to program a function that should do the following : - check for an email adress in a database - if not - save the new adress - if already exists - ask to save anyway - if no - cancel and put the first email adres back in the form - if yes - save I get it almost working right

[Proto-Scripty] Re: prototype-server side

2010-03-17 Thread chrysanthe m
Thank you Paranav Both cogent responses. I could not find a similar parser in the json-lib. Happily using the json-simple thanks to you. Best of all I can resume coding. On Tue, Mar 16, 2010 at 6:32 PM, chrysanthe m chrysant...@gmail.com wrote: Hello Two questions if I may: 1. Will

[Proto-Scripty] firing function after page load

2010-03-17 Thread Joannes De KOSTER
Hello, How can i apply a script on an html element (for example a table) when this element is loaded in the page afterwards (after ajax request)? This code never gets to work for example : $$('tr.lignealternative').each(function(elmt) { elmt.observe('mouseover',

[Proto-Scripty] Re: prototype-server side

2010-03-17 Thread chrysanthe m
Hi All Actually I did JSONObject.fromObject(); fyi On Wed, Mar 17, 2010 at 11:35 AM, chrysanthe m chrysant...@gmail.comwrote: Thank you Paranav Both cogent responses. I could not find a similar parser in the json-lib. Happily using the json-simple thanks to you. Best of all I can resume

Re: [Proto-Scripty] firing function after page load

2010-03-17 Thread green
*To apply a script after page loaded (all dom node loaded)* document.observe('dom:loaded', function() { $$('tr.lignealternative').each(function(elmt) { elmt.observe('mouseover', function(ev) { elmt.toggleClassName(lignehover); });