Re: two unique banners on one page
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 13373
interpreted = N
texte = >>>I recall (Grant I think) put some webDNA up that would allow for a search>>>to return two unique banners.>>>>I think the simplest way to handle this is to have two separate databases.> I did put up some WebDNA once, but it was awfully complex.>I tried using two databases with random sorts and the problem I have is>that the could always generates the same pair of ads.Hi Daniel,I think Grant meant putting half the banners in one db and the restin the other db, so the same two could never appear on the same page.But I think there's a better way ...>Is there any way to make both ads truly random?Remember that Random Number generator I wrote? That code will neverchoose the same two records in the database. Right now, it's set tochoose ten (10) unique random numbers, but it could be used to chooseonly two - or three - or as many unique banners as you want to showon the page ... :)Sincerely, Ken GromeWebDNA Solutionshttp://www.hui.net/dna/webdna.html
Associated Messages, from the most recent to the oldest:
>>>I recall (Grant I think) put some webDNA up that would allow for a search>>>to return two unique banners.>>>>I think the simplest way to handle this is to have two separate databases.> I did put up some WebDNA once, but it was awfully complex.>I tried using two databases with random sorts and the problem I have is>that the could always generates the same pair of ads.Hi Daniel,I think Grant meant putting half the banners in one db and the restin the other db, so the same two could never appear on the same page.But I think there's a better way ...>Is there any way to make both ads truly random?Remember that Random Number generator I wrote? That code will neverchoose the same two records in the database. Right now, it's set tochoose ten (10) unique random numbers, but it could be used to chooseonly two - or three - or as many unique banners as you want to showon the page ... :)Sincerely, Ken GromeWebDNA Solutionshttp://www.hui.net/dna/webdna.html
Kenneth Grome
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:
Field name-subcategory (1997)
Bug? (1997)
[searchString] (1997)
[WebDNA] WebDNA Roll Call (2013)
& not allowed in db by definition? (1999)
Price and Formula.db (2002)
The beginning (1997)
Bug Report, maybe (1997)
[WebDNA] Help with STMP Setup using Authentication with Google (2016)
Problem using # in my field names ... (1998)
# fields limited? (1997)
Exclude by date - multiple (1997)
Netscape (2002)
Formulas.db + Users.db (1997)
WebDNA 4.5.1 Now Available (2003)
WebCat2b12 - nesting [tags] (1997)
Dumb Question about Docs (1997)
Sorting by date (1997)
form data submission gets truncated (1997)
Trouble with formula.db (1997)