Re: code to phantom spacing

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 36628
interpreted = N
texte = Kenneth and John,Thanks very much for your replies! Sounds like this has been an issue for you two before to some extent. I was actually surpassed that I didn't find it in the archives, as I can hardly believe that no one else is writing volumes of code and experiencing the same thing. Makes me wonder if I'm making some rookie mistake!So, here's what I've done:I've applied method one to an extent but wore out on it (1300+ lines of code after all, and as you said John, no more adjustments after that, yuk!). It seemed to be making some difference. Would it solve the issue, don't know.I did not apply method two for much of the same reasons I wore out on one, although it sound like I could edit.The first two have carpal tunnel written all over them, so I was really hoping that method three would work out. For method three, I placed the [converchars] just after the and closed it [/convertchars] after the (I even tried adding a few chars to replace: %09, %20).The result was that the endless scroll bar has now moved to the horizontal (still endless). There are still 40+ lines of vertical, so returns are not being completely removed.File size fluctuates, so it's hard to say if it's making a difference there at all. Sometimes it seems to, other times not, with the size in bytes even *increasing*. The phantom code is surely still there, just reconfigured. I can highlight the phantoms on the return document. It almost seems like the WebDNA tags themselves are being replaced by spacing after the conversion.Any further ideas would be gratefully excepted, and thanks for you previous attention! Jon __________________________ Jon Robinson Chakra5 studios http://www.chakra5.netjon@chakra5.net (206) 781-0140 (o) (206) 228-0451 (c) > -----Original Message----- > From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On > Behalf Of Kenneth Grome > Sent: Saturday, June 23, 2001 8:32 PM > To: WebCatalog Talk > Subject: Re: code to phantom spacing > > > >Even though WebCatalog does not display it's commands when > >they have been processed, the linefeeds in the block are not > >removed. I have been advocating for a long time that WebCat > >strip whitespace except in those contexts that require exact > >formatting (only [sendmail] comes to mind). > > > >You have two options: strip all returns out of your templates > >(and stop being able to edit them) or comment out the returns, > >via [!][/!] pairs, vis: > > > > [search db.....][!] > > [/!][lineitems] > > > Actually you also have the *third* option, which I consider to be the > best one of all. This option has three warnings with it: > > 1- It cannot be used on a page that has a textarea field in it -- > unless you don't mind having the 'new line' characters stripped from > your textarea field values. Therefore, to avoid this problem, just > don't use this technique on those pages. > > 2- If you're using javascript on the page, you'll probably have to > reformat it so it works when all the cr's and lf's have been removed. > There's a simple tool online at the brainjar.com website that does > this for you in a matter of seconds, and you can save the source and > use it without even being online because it written in javascript. If > you use it on your javascript as I have, it will make my technique > work properly on those pages with no problem. > > 3- If you use
 tags on a page, don't use this technique on> the same page.>> By dealing with these three issues properly, my technique will> effectively remove all the unnecessary cr and lf characters on the> pages you use it on. And if you use tabs in your pages and want to> get rid of them too, you can add %09 to the db to get rid of tabs as> well.>> Yes, this even works on pages with [sendmail] contexts in them --> because the sendmail gets processed with the proper formatting intact> *before* webcat strips out the unnecessary new line characters from> the rest of the page.>> Here's the technique:>> 1- Create a noReturns.db file for use with the convertchars context> as follows, then put it in the globals folder:>> from to> %0A> %0D>>> 2- Place this tag at the very top of every page (except as noted> above). Make sure this tag appears before ANY other text on the page:>> [convertchars db=^noReturns.db]>> 3- Place this tag at the very bottom of the same pages. Make sure> this tag appears after ALL the other text on the page:>> [/convertchars]>>> That's all there is to it!  To see the results, simply view the> source of any page you use it on after requesting that page via your> web browser ...>>   :)>> =================================================> Kenneth Grome                   WebDNA Consultant> telephone number:              011 63 32 486-9077> telephone number:             011 63 919 749-0060> business web site:              http://webdna.net> personal web site:            http://kengrome.com> =================================================>> -------------------------------------------------------------> This message is sent to you because you are subscribed to>   the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> > Web Archive of this list is at: http://search.smithmicro.com/>-------------------------------------------------------------This message is sent to you because you are subscribed to  the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/





Associated Messages, from the most recent to the oldest:

    
  1. Re: code to phantom spacing (Glenn Busbin 2001)
  2. Re: code to phantom spacing (Jon Robinson 2001)
  3. Re: code to phantom spacing (Jon Robinson 2001)
  4. Re: code to phantom spacing (Kenneth Grome 2001)
  5. Re: code to phantom spacing (Kenneth Grome 2001)
  6. Re: code to phantom spacing (Jon Robinson 2001)
  7. Re: code to phantom spacing (Brian Fries 2001)
  8. Re: code to phantom spacing (John Peacock 2001)
  9. Re: code to phantom spacing (Jon Robinson 2001)
  10. Re: code to phantom spacing (Jon Robinson 2001)
  11. Re: Was Re: code to phantom spacing -- now BBEdit [!][/!] (Paolo Coppo 2001)
  12. Re: Was Re: code to phantom spacing -- now BBEdit [!][/!] (John Peacock 2001)
  13. Re: Was Re: code to phantom spacing -- now BBEdit [!][/!] (dale 2001)
  14. Was Re: code to phantom spacing -- now BBEdit [!][/!] (Christopher Mackay 2001)
  15. Re: code to phantom spacing (John Peacock 2001)
  16. Re: code to phantom spacing (Samuel Renkert 2001)
  17. Re: code to phantom spacing (Kenneth Grome 2001)
  18. Re: code to phantom spacing (Jon Robinson 2001)
  19. Re: code to phantom spacing (Kenneth Grome 2001)
  20. Re: code to phantom spacing (Jon Robinson 2001)
  21. Re: code to phantom spacing (Jon Robinson 2001)
  22. Re: code to phantom spacing (Jon Robinson 2001)
  23. Re: code to phantom spacing (Kenneth Grome 2001)
  24. Re: code to phantom spacing (Glenn Busbin 2001)
  25. Re: code to phantom spacing (Jon Robinson 2001)
  26. Re: code to phantom spacing (Kenneth Grome 2001)
  27. Re: code to phantom spacing (John Peacock 2001)
  28. Re: code to phantom spacing (Kenneth Grome 2001)
  29. code to phantom spacing (Jon Robinson 2001)
Kenneth and John,Thanks very much for your replies! Sounds like this has been an issue for you two before to some extent. I was actually surpassed that I didn't find it in the archives, as I can hardly believe that no one else is writing volumes of code and experiencing the same thing. Makes me wonder if I'm making some rookie mistake!So, here's what I've done:I've applied method one to an extent but wore out on it (1300+ lines of code after all, and as you said John, no more adjustments after that, yuk!). It seemed to be making some difference. Would it solve the issue, don't know.I did not apply method two for much of the same reasons I wore out on one, although it sound like I could edit.The first two have carpal tunnel written all over them, so I was really hoping that method three would work out. For method three, I placed the [converchars] just after the and closed it [/convertchars] after the (I even tried adding a few chars to replace: %09, %20).The result was that the endless scroll bar has now moved to the horizontal (still endless). There are still 40+ lines of vertical, so returns are not being completely removed.File size fluctuates, so it's hard to say if it's making a difference there at all. Sometimes it seems to, other times not, with the size in bytes even *increasing*. The phantom code is surely still there, just reconfigured. I can highlight the phantoms on the return document. It almost seems like the WebDNA tags themselves are being replaced by spacing after the conversion.Any further ideas would be gratefully excepted, and thanks for you previous attention! Jon __________________________ Jon Robinson Chakra5 studios http://www.chakra5.netjon@chakra5.net (206) 781-0140 (o) (206) 228-0451 (c) > -----Original Message----- > From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On > Behalf Of Kenneth Grome > Sent: Saturday, June 23, 2001 8:32 PM > To: WebCatalog Talk > Subject: Re: code to phantom spacing > > > >Even though WebCatalog does not display it's commands when > >they have been processed, the linefeeds in the block are not > >removed. I have been advocating for a long time that WebCat > >strip whitespace except in those contexts that require exact > >formatting (only [sendmail] comes to mind). > > > >You have two options: strip all returns out of your templates > >(and stop being able to edit them) or comment out the returns, > >via [!][/!] pairs, vis: > > > > [search db.....][!] > > [/!][lineitems] > > > Actually you also have the *third* option, which I consider to be the > best one of all. This option has three warnings with it: > > 1- It cannot be used on a page that has a textarea field in it -- > unless you don't mind having the 'new line' characters stripped from > your textarea field values. Therefore, to avoid this problem, just > don't use this technique on those pages. > > 2- If you're using javascript on the page, you'll probably have to > reformat it so it works when all the cr's and lf's have been removed. > There's a simple tool online at the brainjar.com website that does > this for you in a matter of seconds, and you can save the source and > use it without even being online because it written in javascript. If > you use it on your javascript as I have, it will make my technique > work properly on those pages with no problem. > > 3- If you use
 tags on a page, don't use this technique on> the same page.>> By dealing with these three issues properly, my technique will> effectively remove all the unnecessary cr and lf characters on the> pages you use it on. And if you use tabs in your pages and want to> get rid of them too, you can add %09 to the db to get rid of tabs as> well.>> Yes, this even works on pages with [sendmail] contexts in them --> because the sendmail gets processed with the proper formatting intact> *before* webcat strips out the unnecessary new line characters from> the rest of the page.>> Here's the technique:>> 1- Create a noReturns.db file for use with the convertchars context> as follows, then put it in the globals folder:>> from to> %0A> %0D>>> 2- Place this tag at the very top of every page (except as noted> above). Make sure this tag appears before ANY other text on the page:>> [convertchars db=^noReturns.db]>> 3- Place this tag at the very bottom of the same pages. Make sure> this tag appears after ALL the other text on the page:>> [/convertchars]>>> That's all there is to it!  To see the results, simply view the> source of any page you use it on after requesting that page via your> web browser ...>>   :)>> =================================================> Kenneth Grome                   WebDNA Consultant> telephone number:              011 63 32 486-9077> telephone number:             011 63 919 749-0060> business web site:              http://webdna.net> personal web site:            http://kengrome.com> =================================================>> -------------------------------------------------------------> This message is sent to you because you are subscribed to>   the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> > Web Archive of this list is at: http://search.smithmicro.com/>-------------------------------------------------------------This message is sent to you because you are subscribed to  the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/



Jon Robinson 

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:

formula.db problem (1999) WebCat Contest (1998) WebCatalog stalls (1998) WebCatalog can't find database (1997) Alternating BGColors in Table Rows (1998) Pithy questions on webcommerce & siteedit (1997) Error -108 (1997) WC2f3 (1997) Ok here is a question? (1997) AE aware WebCatalog.acgi? (1997) More on the email templates (1997) Monitor Hard Disk Space? (2003) [OT] Form POSTing with LONG variable (2007) CSS positioning!!! (2001) For those of you not on the WebCatalog Beta... (1997) WebDNA for Dummies (2004) [date] formatting bug inside [orderfile]? (1998) Hideifs / Showifs (2000) WebDNA 5.0 Enterprise Edition (2003) Updating checkboxes made easy !!! (1998)