Re: [WebDNA] numTDsPerTR_onTheFly

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 104874
interpreted = N
texte = I think you meant for numItemsPerRow to be numProdImgsPerRow instead? ie. [text]numProdImgsPerRow =4[/text] Marc Govinda wrote: > Obviously 90% of you on this list have long since written your own > version of this.. but for the archives.. here is a starter humble > offering to temporarily hold over my own desire to give significantly > on this list. > > This is code to take a collection of items returned by a search and > spit them out to an HTML table, as many 's per as you like. > Just set the number assigned to [numItemsPerRow] on the first line to > whatever you want. > > -Govinda > > = > ======================================================================== > > [text show=F]numItemsPerRow=4[/text][!]<---Change this number to > however many items per row you want-[/!] > [search db=your.db&eqSearchCriteriadatarq=[blah]&asFieldsort=1] >  > [text show=F]row=closed[/text] > [founditems] > [showif [row]=closed] > [text show=F]row=open[/text] > [text show=F]numCellsThisRow=0[/text] >  > [/showif] > [text show=F]numCellsThisRow=[math show=T][numCellsThisRow]+1[/math] > [/text] >  > [showif [index]\[numProdImgsPerRow]] > [text show=F]row=closed[/text] > [text show=F]numCellsThisRow=0[/text] >  > [/showif] > [/founditems] > [showif [URL][row][/URL]=open] > [showif [URL][numCellsThisRow][/URL]<[numProdImgsPerRow]] >  > [/showif] >  > [/showif] > 
> [!]---cell content---[/!] > 
 
> [/search] > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ > Bug Reporting: http://forum.webdna.us/eucabb.html?page=topics&category=288 > . > -- ------------------------------------------- Marc Thompson Software Engineer Office of Information Technology University of Utah 801.585.9264 marc.thompson@utah.edu ------------------------------------------- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] numTDsPerTR_onTheFly (Govinda 2010)
  2. Re: [WebDNA] numTDsPerTR_onTheFly (Marc Thompson 2010)
  3. [WebDNA] numTDsPerTR_onTheFly (Govinda 2010)
I think you meant for numItemsPerRow to be numProdImgsPerRow instead? ie. [text]numProdImgsPerRow =4[/text] Marc Govinda wrote: > Obviously 90% of you on this list have long since written your own > version of this.. but for the archives.. here is a starter humble > offering to temporarily hold over my own desire to give significantly > on this list. > > This is code to take a collection of items returned by a search and > spit them out to an HTML table, as many 's per as you like. > Just set the number assigned to [numItemsPerRow] on the first line to > whatever you want. > > -Govinda > > = > ======================================================================== > > [text show=F]numItemsPerRow=4[/text][!]<---Change this number to > however many items per row you want-[/!] > [search db=your.db&eqSearchCriteriadatarq=[blah]&asFieldsort=1] >  > [text show=F]row=closed[/text] > [founditems] > [showif [row]=closed] > [text show=F]row=open[/text] > [text show=F]numCellsThisRow=0[/text] >  > [/showif] > [text show=F]numCellsThisRow=[math show=T][numCellsThisRow]+1[/math] > [/text] >  > [showif [index]\[numProdImgsPerRow]] > [text show=F]row=closed[/text] > [text show=F]numCellsThisRow=0[/text] >  > [/showif] > [/founditems] > [showif [url][row][/URL]=open] > [showif [url][numCellsThisRow][/URL]<[numProdImgsPerRow]] >  > [/showif] >  > [/showif] > 
> [!]---cell content---[/!] > 
 
> [/search] > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ > Bug Reporting: http://forum.webdna.us/eucabb.html?page=topics&category=288 > . > -- ------------------------------------------- Marc Thompson Software Engineer Office of Information Technology University of Utah 801.585.9264 marc.thompson@utah.edu ------------------------------------------- Marc Thompson

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

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...

Related Readings:

MacAuthorize order data fields WAS:How To question... (1997) WebCat 5 Intranet Question (2003) Problems with [Applescript] (1997) Shop from PDF (2004) splitting numbers in webDNA? (1997) [OT] CSS and SSI books (2004) I'm new be kind (1997) admin/admin on NT4 (2000) [WebDNA] WebDNA staging server (2008) Suffix Mapping (1997) Sendmail Question (2001) WebDelivery downloads alias, not original ? (1997) WebDNA FAQ or FAQs -- was "weird problem" (2004) WebCat2 - storing unformatted date data? (1997) send mail problem? (1997) PIXO (1997) # fields limited? (1997) [WebDNA] Different responses for the same commands ... (2011) Kaaaaahhhhhhhnnnnnnn! (1997) Mimeheaders parameters, which exist? (2003)