Your code is looping from 1 to the number of elements in the guest, but then you specify guest[i]. There's only one guest. Also, at no point does the code add a node to anything in the XML document; it's adding a row to a query.
On 6/24/06, Scott Stewart <[EMAIL PROTECTED]> wrote: > Error Occurred While Processing Request > The index of a child element is out of range. > There are only "1" children under this node. > Therefore index "2" is out of the allowed range [1-1]. > The error occurred in C:\Inetpub\wwwroot\guestbookRebuild\newguest.cfm: line > 17 > > 15 : <cfset temp = QueryAddRow(gbookquery,#numItems#)> > 16 : <cfloop index="i" from = "1" to = #numItems#> > 17 : <cfset temp = QuerySetCell(gbookquery,"firstname", -- CFAJAX docs and other useful articles: http://jr-holmes.coldfusionjournal.com/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244712 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

