Repeating Section on Top?

K

kevin2150

I'm trying to create a simple form for an RSS feed and want to have the "Add
new Item" function of a repeating section add the new item on the top of the
existing list. Anyone know how to do that?
 
S

S.Y.M. Wong-A-Ton

Think in terms of XML and it becomes quite easy actually. :) The easiest way
to do this is to retrieve the XML node pertaining to the first repeating
section, then use cloneNode() to make a copy of it, change the values of its
child elements/attributes or empty them, and then use insertBefore() to
insert it before the first repeating section. Search on the functions I've
mentioned in this newsgroup or on the web, and you should be able to find
samples on how this can be done.
 
Top