Re: [Proto-Scripty] Re: strange element.select issue

2011-04-04 Thread Richard Quadling
On 3 April 2011 20:14, Joschi Cassel wrote: > I do recall that now.  Thank you.  It just fits so perfectly to use > the ID of the sql table row as the ID of the matching HTML table > row :)  What is your preferred method when populating a table with > results from a query? > > Thank you, > Joschi

[Proto-Scripty] Re: Parse html

2011-04-04 Thread kstubs
Thanks for the reply Alphonso. I have almost completely abandoned Xml manipulation on the client-side now. I was only thinking of parsing the HTML as a way to reuse an info page that I have created as static HTML. Well, I'm back to JSON. Loving JSON on the client-side, but wish I was more pr

[Proto-Scripty] Re: strange element.select issue

2011-04-04 Thread Joschi Cassel
Clever approach. Thank you. Best regards, Joschi On Apr 4, 5:11 am, Richard Quadling wrote: > On 3 April 2011 20:14, Joschi Cassel wrote: > > > I do recall that now.  Thank you.  It just fits so perfectly to use > > the ID of the sql table row as the ID of the matching HTML table > > row :)  W

[Proto-Scripty] Re: Parse html

2011-04-04 Thread Joschi Cassel
A book I read once described just what you are looking for. i use it regularly load "windows" from templates. The book was Ajax: The definitive guide by Anthony Holdener III Best regards, Joschi On Apr 4, 5:15 am, kstubs wrote: > Thanks for the reply Alphonso.  I have almost completely abando

[Proto-Scripty] Re: strange element.select issue

2011-04-04 Thread T.J. Crowder
Hi, > What is your preferred method when populating a table with > results from a query? If I absolutely, positively must have an `id` for something where the value might start with a digit, I simply put an 'x' in front of it, then use `.substring(1)` later to get the real value. But that's only

Re: [Proto-Scripty] Re: Parse html

2011-04-04 Thread Walter Lee Davis
On Apr 4, 2011, at 5:15 AM, kstubs wrote: Loving JSON on the client-side, but wish I was more proficient in hand coding and code-coding it... but worth it once you are down on the client with it! What server back-end are you using to generate your JSON? PHP and Ruby/ Rails both have fairl

Re: [Proto-Scripty] Re: Parse html

2011-04-04 Thread kstubs
I write my own JSON on the backend. I use JSON.net if I need a JSON writer for code in C#. I just developed an object in PHP that sends JSON down the pipe to a requesting page. At first I was using the built-in json_encode function from a SimpleXmlElement but eventually I wrote my own as I di

Re: [Proto-Scripty] Re: strange element.select issue

2011-04-04 Thread Joschi Cassel
Gotcha. In this case I used it to store the unique ID of the entry in the sql table. Referencing it when an input from that row was updated. Or as a process of saving changes. Example for each table row, check for input changes, use id to write xml string to send to server side for processing. I

Re: [Proto-Scripty] Re: strange element.select issue

2011-04-04 Thread Walter Lee Davis
On Apr 4, 2011, at 2:37 PM, Joschi Cassel wrote: Question, Let's say you had a div / table with multiple inputs, do you manually set the onblur for each input or "observe" from the form, div? It's kind of risky to try to observe the blur event from above the element, because IE has seri

[Proto-Scripty] Re: strange element.select issue

2011-04-04 Thread T.J. Crowder
> It's kind of risky to try to observe the blur event from above the   > element, because IE has serious trouble with bubbling form inputs. The   Well, it's not that it has *trouble* with bubbling `blur` and `focus` events. It just doesn't do it. ;-) It does, however, bubble its proprietary `focus