Re: [Proto-Scripty] newb questions

2011-11-05 Thread Walter Lee Davis
Oh, man! It's been so long since I wrote PHP/MySQL long-hand, so you'll just have to translate this example for yourself. Take it as written, and just try to abstract out the magic of my ORM layer. table: widgets id int(11) primary key, auto-incrementing name

[Proto-Scripty] Re: Element.replace get top node of replaced content

2011-11-05 Thread vhochstein
Hi Thanks a lot for your help. I slightly changed it: var new_element = new Element('div').update(html); new_element = new_element.firstDescendant(); Element.replace(old_element, new_element); -- Volker On 4 Nov., 23:31, T.J. Crowder t...@crowdersoftware.com wrote: On Nov 4, 5:30 pm,

[Proto-Scripty] troubleshooting scriptalicious/mysql/php...

2011-11-05 Thread joelbrave
I can't figure out where else to post this question, and though I don't like the idea of posting a ton of code here, I don't know what else to do. My code is based on this: http://www.gregphoto.net/index.php/2007/01/16/scriptaculous-sortables-with-ajax-callback/ I have a database with a few

[Proto-Scripty] Re: troubleshooting scriptalicious/mysql/php...

2011-11-05 Thread joelbrave
Ok, thanks. I had been messing with that as part of my troubleshooting. I put it back to 1 for both. I also dropped the table and re-added, without setting the order_col to be a UNIQUE key, which I think was blocking the updates to the database entirely, most of the time. Now I can update some