Yes, subtle. Of course I frequent this site, and love it and will not complain, especially since I can turn here [this group] for questions/ answers.
On Apr 20, 1:35 am, "T.J. Crowder" <t...@crowdersoftware.com> wrote: > Hi, > > > Where is the insert syntax, specifically the position options > > described in the documentation? > > In the usual place.[1] To my mind, though, it's far too subtle. I > think the new documentation format for 1.6.1 will correct that. > > [1]http://prototypejs.org/api/element/insert > -- > T.J. Crowder > tj / crowder software / com > Independent Software Engineer, consulting services available > > On Apr 20, 8:45 am, kstubs <kst...@gmail.com> wrote: > > > That works great, thanks! > > Where is the insert syntax, specifically the position options > > described in the documentation? > > > Karl.. > > > On Apr 19, 8:01 pm, Walter Lee Davis <wa...@wdstudio.com> wrote: > > > > On Apr 19, 2009, at 10:25 PM, kstubs wrote: > > > > > I would like to insert a table-row adjacent to a given table-row. I > > > > have tr elements like this: > > > > > <tr id='2349'>...</tr> > > > > <tr id='2456'>...</tr> > > > > <tr id='2873'>...</tr> > > > > <tr id='2294'>...</tr> > > > > > so can easily get a reference to my tr element like this: > > > > > var tr = $('2456'); > > > > An ID must begin with at least one alphabetical character or an > > > underscore, it may not begin with a number. > > > > > So how do I achieve an insertion just after this element like this: > > > > > <tr id='2349'>...</tr> > > > > <tr id='2456'>...</tr> > > > > > ... insert a new tr element here ... > > > > > <tr id='2873'>...</tr> > > > > <tr id='2294'>...</tr> > > > > > Do I have to redraw the entire table? > > > > No. Assuming you had made your IDs "legal", you could do this: > > > > $('row_2456').insert({after:'<tr id="row_whatever"> ... </tr>'}); > > > > Walter --~--~---------~--~----~------------~-------~--~----~ 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 prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---