numero = 20323
interpreted = N
texte = Grant Hulbert wrote:> There are actually quite a lot of tags available outside the> [lineitems] context (but inside an [orderfile] context). Things like> [name], [shiptoaddress], etc. The one you're looking for is called> [numLineItems].Right you are. I am using the [add], [remove], and [showCart] commandsto reach the shoppingCart page, and so I was using [lineItems] withoutan [orderFile] context. Adding [orderFile cart=[cart]] makes the [showIf[numLineItems]=0] function correctly, but it causes another problem.When adding or removing an item, the shoppingCart page shows an emptyorder file. Hitting reload and re-posting the data displays the firstitem added. Then hitting [showCart] displays the first item added, andan identical second item added when the data was re-posted. So the itemsare being added correctly, but not displayed on the page. Simplyremoving the [orderFile] context fixes the display problem, but breaksthe [showIf [numLineItems]=0]. Any idea what's going on here? Please cc:me, as I read the digest.Thanks,Brian::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Brian.Drum :::::::::::::::::::::::::::::::: mailto:bdrum@aecsoft.com :: Web.Designer :::::::::::::::::::::::::::::::: http://www.aecsoft.com :: AEC.Software;.Inc.:::::::::::::::::::::::::::: tel:703.450.1980 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::[orderfile cart=[cart]][lineItems]
Grant Hulbert wrote:> There are actually quite a lot of tags available outside the> [lineitems] context (but inside an [orderfile] context). Things like> [name], [shiptoaddress], etc. The one you're looking for is called> [numLineItems].Right you are. I am using the [add], [remove], and [showCart] commandsto reach the shoppingCart page, and so I was using [lineitems] withoutan [orderfile] context. Adding [orderFile cart=[cart]] makes the [showIf[numLineItems]=0] function correctly, but it causes another problem.When adding or removing an item, the shoppingCart page shows an emptyorder file. Hitting reload and re-posting the data displays the firstitem added. Then hitting [showCart] displays the first item added, andan identical second item added when the data was re-posted. So the itemsare being added correctly, but not displayed on the page. Simplyremoving the [orderfile] context fixes the display problem, but breaksthe [showIf [numLineItems]=0]. Any idea what's going on here? Please cc:me, as I read the digest.Thanks,Brian::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Brian.Drum :::::::::::::::::::::::::::::::: mailto:bdrum@aecsoft.com :: Web.Designer :::::::::::::::::::::::::::::::: http://www.aecsoft.com :: AEC.Software;.Inc.:::::::::::::::::::::::::::: tel:703.450.1980 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::[orderfile cart=[cart]][lineitems]
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...