Re: [WebDNA] Feature Request: [returnhtml]

This WebDNA talk-list message is from

2016


It keeps the original formatting.
numero = 112688
interpreted = N
texte = 271 I have a different approach. I begin all my scripts by opening a garbage text variable. Then I=20 create a returnhtml variable that saves everything that needs to be=20 visible. 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 stuff endgarbage[/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 to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Feature Request: [returnhtml] (dbrooke@euca.us 2016)
  2. Re: [WebDNA] Feature Request: [returnhtml] (christophe.billiottet@webdna.us 2016)
  3. Re: [WebDNA] Feature Request: [returnhtml] (christophe.billiottet@webdna.us 2016)
  4. Re: [WebDNA] Feature Request: [returnhtml] (William DeVaul 2016)
  5. Re: [WebDNA] Feature Request: [returnhtml] ("Matthew A Perosi, Psi Prime" 2016)
  6. Re: [WebDNA] Feature Request: [returnhtml] (Kenneth Grome 2016)
271 I have a different approach. I begin all my scripts by opening a garbage text variable. Then I=20 create a returnhtml variable that saves everything that needs to be=20 visible. 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 stuff endgarbage[/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 to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug 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:

Editing the search string (1997) Size limit for tmpl editor ? (1997) PSC recommends what date format yr 2000??? (1997) A question on sub-categories (1997) Resume Catalog ? (1997) Can't find templaes (1997) File Upload (1997) New WebDNA Example from Olin -- (1998) WebCat2 Append problem (B14Macacgi) (1997) Timer Values on [redirect] (1998) Hard Questions ? (1997) Need help with form (1998) ShipTotal Again (1998) [OT] PHP?MySQL Help Needed (2003) Database of Tax Rates? (1997) my price won't move (1997) setlineiems and UnitShip Cost (2000) Showing unopened cart (1997) 2.0 Info (1997) How can I Add several Items into the cart at once? (1997)