Re: [WebDNA] Feature Request: [returnhtml]
This WebDNA talk-list message is from 2016
It keeps the original formatting.
numero = 112688
interpreted = N
texte = 271I have a different approach.I begin all my scripts by opening a garbage text variable. Then I=20create a returnhtml variable that saves everything that needs to be=20visible. At the end I close my garbage variable and display the returnht=ml.Example:[text]garbage=3D [text]returnhtml=3D[/text] do stuff here [text]returnhtml=3D[returnhtml]
[/text] do more stuffendgarbage[/text][returnhtml]On 3/24/2016 2:09 PM, Brian Burton wrote:> Problem: I have webpages that create a tremendous amount of whitespace =at or near the top of the webpage due to all the webdna stuff going on.> Occasionally it bothers me enough that I comment out the carriage retur=ns, but that is SUPER MESSY code to look at.> In a function, we have the ability to limit the output with a [return][=/return] pair.>> Proposed Solution:> What would be a great addition to WebDNA would be a [returnhtml][/retur=nhtml] tag pair. It would only be allowed once per rendered page.> On any page that doesn=E2=80=99t have this pair, everything would work =as it currently does.> On any page that does have the pair, WebDNA only returns to Apache what==E2=80=99s between the pair.>> Now any amount of webdna code stays nicely safe and hidden, doesn=E2=80==99t generate any whitespace, and means we can make very clean HTML outpu=t.>> (also helps move us a step closer to MVC, but ignore the man behind tha=t curtain :)>> -Brian B. Burton> ---------------------------------------------------------> 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> Bug Reporting: support@webdna.us>>>> --=20> Matthew A Perosi> Corporate Consultant> Mobile Marketing Expert> Senior Web Developer> SEO Analyst & Educator> matt@psiprime.com>> Psi Prime> 323 Union Blvd.> Totowa, NJ 07512>> Direct: 888.872.0274> Fax: 888.488.5924>> http://www.perosi.com---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: support@webdna.us.
Associated Messages, from the most recent to the oldest:
271I have a different approach.I begin all my scripts by opening a garbage text variable. Then I=20create a returnhtml variable that saves everything that needs to be=20visible. At the end I close my garbage variable and display the returnht=ml.Example:[text]garbage=3D [text]returnhtml=3D[/text] do stuff here [text]returnhtml=3D[returnhtml][/text] do more stuffendgarbage[/text][returnhtml]On 3/24/2016 2:09 PM, Brian Burton wrote:> Problem: I have webpages that create a tremendous amount of whitespace =at or near the top of the webpage due to all the webdna stuff going on.> Occasionally it bothers me enough that I comment out the carriage retur=ns, but that is SUPER MESSY code to look at.> In a function, we have the ability to limit the output with a [return][=/return] pair.>> Proposed Solution:> What would be a great addition to WebDNA would be a [returnhtml][/retur=nhtml] tag pair. It would only be allowed once per rendered page.> On any page that doesn=E2=80=99t have this pair, everything would work =as it currently does.> On any page that does have the pair, WebDNA only returns to Apache what==E2=80=99s between the pair.>> Now any amount of webdna code stays nicely safe and hidden, doesn=E2=80==99t generate any whitespace, and means we can make very clean HTML outpu=t.>> (also helps move us a step closer to MVC, but ignore the man behind tha=t curtain :)>> -Brian B. Burton> ---------------------------------------------------------> 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> Bug Reporting: support@webdna.us>>>> --=20> Matthew A Perosi> Corporate Consultant> Mobile Marketing Expert> Senior Web Developer> SEO Analyst & Educator> matt@psiprime.com>> Psi Prime> 323 Union Blvd.> Totowa, NJ 07512>> Direct: 888.872.0274> Fax: 888.488.5924>> http://www.perosi.com---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: support@webdna.us.
"Matthew A Perosi, Psi Prime"
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:
WebDNA v6.0 (2004)
Anyone get WebDNA working on a windows XP Home box? (2006)
Problem with empty form-variables in [search] (1998)
Store setup questions (2000)
WebCatalog copies database with -tmp suffix (2005)
searching with if/then (2004)
Nested tags count question (1997)
security (1997)
WebCat2b12 CGI Mac -- Problems propagating the cart through (1997)
OLD PROBLEM (1997)
won't serve .tpl -permissions (2000)
Database Structure? (1998)
Strange time in emails (2003)
WebCat2 - [format thousands] (1997)
Hello??? (1997)
The [shownext] limitations (2002)
search form problem.. (1997)
Photo Album (2000)
OT: Validating user input (2004)
Cart ID Duplication (2001)