[Proto-Scripty] Re: adding InPlaceEditor to each table cell

2010-10-28 Thread BrentNicholas
you looked at TableKit for this? It's remarkably easy to add to a   table, static or dynamic, all you do is ad the classname editable to   your table head above the column you want to edit. Walter On Oct 27, 2010, at 6:34 PM, BrentNicholas wrote: Hi all, I've been wrestling

[Proto-Scripty] adding InPlaceEditor to each table cell

2010-10-27 Thread BrentNicholas
Hi all, I've been wrestling with this for a little bit now and figure it's time to ask for help. I can't seem to find anything on the web. I have a dynamicly generated table, I want to have an InPlaceEditor instance on each table cell. From what I can tell you need to do a 'new' object on it for

[Proto-Scripty] Re: Catch (Event or Transport) best practice?

2009-05-28 Thread BrentNicholas
(event) {     doTheEditThing(this.id); }); FWIW, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On May 27, 11:28 pm, BrentNicholas brentnicho...@gmail.com wrote: Hi all, So I'm wondering what is best practice. I've got

[Proto-Scripty] Catch (Event or Transport) best practice?

2009-05-27 Thread BrentNicholas
Hi all, So I'm wondering what is best practice. I've got a table that users can click a row and get sent to an edit screen. I'm also sending the users to the same edit screen after data inserts. I'd like to use the same function to handle this. However, when you click the row it returns an

[Proto-Scripty] Re: event handling on ajax.request. how to add new event.observes when new data loads

2009-04-29 Thread BrentNicholas
I personally do something like this, though I have to wonder is it bad practice? I get the content with a request and use the callbacks to do what I need, seems to work fine. Though I wonder about observer clean up since I don't unregister them anywhere. function getSelectsForm() { new

[Proto-Scripty] Re: Event.observe

2009-04-29 Thread BrentNicholas
attached. -- http://positionabsolute.net On Apr 29, 2:59 pm, BrentNicholas brentnicho...@gmail.com wrote: Hi all, So I posted about this before but am still having troubles with Event.observe flaking out on me after a period of time. Here's the situation: The page runs and init's

[Proto-Scripty] Re: Does prototype expire?

2009-04-08 Thread BrentNicholas
with those IDs at the time that a click happens, the function will   Just Work™. Walter On Apr 7, 2009, at 6:33 PM, BrentNicholas wrote: So does prototype time out, expire? Or is this some form of Event.observe mappings being lost when another ajax.request is made with new buttons

[Proto-Scripty] Re: Does prototype expire?

2009-04-08 Thread BrentNicholas
8, 2009, at 10:51 AM, BrentNicholas wrote: I have one thing I can chase down, but open to ideas.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us

[Proto-Scripty] Does prototype expire?

2009-04-07 Thread BrentNicholas
Hi all, I've noticed an odd thing on a project I'm building. It's all in 1.6.0.3 I noticed that the pages work just fine (ajax.request, Event.observe, and all), however if I let the browser sit for about 10mins (have not counted exactly), the buttons tied to functions though 'Event.observe'

[Proto-Scripty] registering observers with classes using $$

2009-04-01 Thread BrentNicholas
Hello all, I found that the getElementsByClassName had been depricated so I'm trying to use $$ as was suggested. I'm a bit stuck though. The goal is to have clicking on any link with a class of 'classProjectsEditA' and have it trigger the function editProjectRecord. After that I'll get the id

[Proto-Scripty] Re: registering observers with classes using $$

2009-04-01 Thread BrentNicholas
Ah, that did it... thank you. BN On Apr 1, 11:59 am, Hector Virgen djvir...@gmail.com wrote: $$() uses CSS selectors, so you must pass in a CSS rule. Try this: $$('a.classProjectsEditA').invoke('observe', 'click', editProjectRecord); -Hector On Wed, Apr 1, 2009 at 8:47 AM, BrentNicholas

[Proto-Scripty] order of operations

2008-09-18 Thread BrentNicholas
I was going to ask another question, but in tying it out I realised there is a more fundamental question here.. Q: within a function, do the statements run in order? if one statement is running will it move on to the next? I faintly recall reading something about js not paying attention to

[Proto-Scripty] Re: order of operations

2008-09-18 Thread BrentNicholas
Maybe I should check up on my old posts... Matt answered it quite well here... http://groups.google.com/group/prototype-scriptaculous/browse_thread/thread/ffd60dfc2a95899a?hl=en Thanks Matt! On Sep 18, 10:23 am, BrentNicholas [EMAIL PROTECTED] wrote: I was going to ask another question

[Proto-Scripty] Re: multipart/form-data and prototype

2008-09-18 Thread BrentNicholas
. On Sep 17, 2:37 pm, BrentNicholas [EMAIL PROTECTED] wrote: Matt, Thanks for the reply. Yeah, I found that js can't get at the file system and did a little looking around. I found this AJAX IFRAME METHOD (AIM)  at:http://www.webtoolkit.info/ajax-file-upload.html At first glance

[Proto-Scripty] multipart/form-data and prototype

2008-09-17 Thread BrentNicholas
I've read that Prototype can not seralize files that have been selected for upload in the form. Found this out the hard way Hrmm. Every thing else loaded... where's my file? Is this still the case? I've read that most people do an iFrame solution. Anyone have other ideas? Thanks for your

[Proto-Scripty] Re: Event.observe best practice

2008-09-08 Thread BrentNicholas
own id...but if you're generating the html from a db anyways then what's the problem?! You can do this in a seperate javascript doc so theres no inline event handlers needed On Sep 4, 10:42 pm, BrentNicholas [EMAIL PROTECTED] wrote: Hi all, I'm building an application and am