Re: [WebDNA] maybe silly suggestion? [founditems]
This WebDNA talk-list message is from 2015
It keeps the original formatting.
numero = 111882
interpreted = N
texte = Code inside the founditems context typically contains both WebDNAand HTML thus making separation practically impossible, doesn't it?You can always repeat your founditems results like this:[search][text]savefounditems=[founditems]whatever ...[/founditems][/text][/search][savefounditems]Maybe I just don't get the point of such a tag/context.Regards,Kenneth GromeWebDNA Solutionshttp://www.webdnasolutions.comWeb Database Systems and Linux Server Management> to help separate my controller logic from my display code it> would be awesome to have a shortcut like: [search> db=allthethings.db&blahblahblah][savefounditems> name=peoplenameddave][/search]> > then later in the page, where i’m rendering the html > [displayfounditems use=peoplenameddave] html things> [/displayfounditems]> > I know it looks like it’s not saving that much code, but I can> see switching which search I want in the controller, and still> being able to use a universal founditems loop lower in the> code. Also the ability to reuse search results (if needed)> without doing the same search again.> > ok, feel free to start telling me how you can do this with a> table (you’re missing the point) or how we don’t need more tags> or whatever :)
Associated Messages, from the most recent to the oldest:
Code inside the founditems context typically contains both WebDNAand HTML thus making separation practically impossible, doesn't it?You can always repeat your founditems results like this:
[search][text]savefounditems=
[founditems]whatever ...[/founditems][/text][/search][savefounditems]Maybe I just don't get the point of such a tag/context.Regards,Kenneth GromeWebDNA Solutionshttp://www.webdnasolutions.comWeb Database Systems and Linux Server Management> to help separate my controller logic from my display code it> would be awesome to have a shortcut like: [search> db=allthethings.db&blahblahblah][savefounditems> name=peoplenameddave][/search]> > then later in the page, where i’m rendering the html > [displayfounditems use=peoplenameddave] html things> [/displayfounditems]> > I know it looks like it’s not saving that much code, but I can> see switching which search I want in the controller, and still> being able to use a universal founditems loop lower in the> code. Also the ability to reuse search results (if needed)> without doing the same search again.> > ok, feel free to start telling me how you can do this with a> table (you’re missing the point) or how we don’t need more tags> or whatever :)
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:
Quantity (1998)
Problems with [Applescript] (1997)
need some help with a loop [nested search?] (1999)
[WebDNA] SOAP support (2014)
when is date system date or order date? (1997)
Search results templates (1996)
Draft Manual, Tutorial, and more (1997)
Limiting user access to .tmpl files (1997)
Buying sans cart (1997)
Who is doing sign-ups-got it (1998)
WebMerchant and MacAuthorize Errors (1998)
WebCat2b15MacPlugin - [protect] (1997)
WebDNA-Talk Digest mode broken (1997)
WebCat 5 Intranet Question (2003)
getchars broken? (1997)
A little help on e-mail (HELP!!! :-) ) (1998)
Claris HomePage messes up the code (1997)
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
WC2b15 File Corruption (1997)
[random] only for 1-100??? (1997)