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'll revisit it. I was struggling a bit with onblur and bubbling.
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?
On Mon, Apr 4, 2011 at 10:06 AM, T.J. Crowder <t...@crowdersoftware.com>wrote:
> > 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 if I really need an ID. As Richard said, usually one
> doesn't need or want to assign an ID to every row in a table...
> -- T.J. :-)
> On Apr 3, 8:14 pm, Joschi Cassel <josch...@gmail.com> 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
> > On Apr 3, 9:20 am, "T.J. Crowder" <t...@crowdersoftware.com> wrote:
> > > Hi,
> > > Don't start `id` values with digits, it's not valid in CSS (and
> > > therefore not in CSS selectors, such as those used by `select` or `$
> > > $`).
> > > This is true of HTML4 as well, but HTML5 opens this up such that
> > > an ID can be just about anything that doesn't have a space in it.
> > > http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
> > > http://www.w3.org/TR/html401/types.html#type-id
> > > http://www.w3.org/TR/html5/elements.html#concept-id
> > > HTH,
> > > --
> > > T.J. Crowder
> > > Independent Software Engineer
> > > tj / crowder software / com
> > > www / crowder software / com
> > > On Apr 2, 9:53 pm, Joschi Cassel <josch...@gmail.com> wrote:
> > > > Hi all,
> > > > Having an odd element.select issue. I am using .select("input") on
> > > > a table row. If the ID of the row starts with a number ("01CA5BE1-
> > > > BA6C-45AB-B46B-C3F25ACF003A" is id value), .select(input) returns
> > > > error below.
> > > > [Exception... "An invalid or illegal string was specified" code: "12"
> > > > nsresult: "0x8053000c (NS_ERROR_DOM_SYNTAX_ERR)" location: "http://
> > > > localhost/a1_local/v3/js/prototype.js Line: 3301"]
> > > > Any suggestions?
> > > > Best regards,
> > > > Joschi
> You received this message because you are subscribed to the Google Groups
> "Prototype & script.aculo.us" group.
> To post to this group, send email to
> To unsubscribe from this group, send email to
> For more options, visit this group at
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to
For more options, visit this group at