Re: code to phantom spacing
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 36630
interpreted = N
texte = >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.Hi Jon,First of all you should NOT replace the spaces (%20) because that will screw up not only the HTML but the plain text on the page. You should NOT be getting rid of space characters! I suggested removing only cr's, lf's, and possibly tab's -- I never suggested removing space characters -- so the first thing you need to do is fix your db so it does not include this character. If you MUST reduce the occurrence of multiple spaces in a row, you will have to use convertwords instead, but that's only available in version 4. And you would have to use it in a very specific manner in order to make it work properly with multiple-space strings anyways, so let's not get into that solution right now, let's focus on what's wrong with your implementation of the solution I already posted ...Second, it would be best if you follow my suggestions exactly. There's a reason for this, so just put the convertchars tags at the very top and bottom of the page like I suggested. They should be the first and last text that appears on the page -- no exceptions. And the one at the top of the page needs to be [convertchars db=^noReturns.db] not simply [convertchars] as you stated above.Third, did you format your noReturns.db is properly? If not, you'll have to fix it or the result will leave some cr's or lf's in the page, and the goal here is to get rod of ALL of them. If the last line in the db has anything on it other than a single carriage return, that's probably what's causing the problem. All webcat db's must end with a cr character in order to work proeprly.I posted this solution because it works for me on the MacOS and theoretically should work on all the other OS's as well, because all it's doing is removing the two new line characters used on all computer platforms -- cr's and lf's. Therefore, unless this works only on the MacOS for some reason, it seems like you've done something else wrong. So once you move the tags to the very top and bottom of the page, and fix your database, please run another test then tell me:Are *all* the cr's and lf's removed in the resulting page? Or do some of these characters still exist in the resulting browser source?Please post the source of the page after you run this test, thanks.=================================================Kenneth Grome WebDNA Consultanttelephone number: 011 63 32 486-9077telephone number: 011 63 919 749-0060business web site: http://webdna.netpersonal 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/
Associated Messages, from the most recent to the oldest:
>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.Hi Jon,First of all you should NOT replace the spaces (%20) because that will screw up not only the HTML but the plain text on the page. You should NOT be getting rid of space characters! I suggested removing only cr's, lf's, and possibly tab's -- I never suggested removing space characters -- so the first thing you need to do is fix your db so it does not include this character. If you MUST reduce the occurrence of multiple spaces in a row, you will have to use convertwords instead, but that's only available in version 4. And you would have to use it in a very specific manner in order to make it work properly with multiple-space strings anyways, so let's not get into that solution right now, let's focus on what's wrong with your implementation of the solution I already posted ...Second, it would be best if you follow my suggestions exactly. There's a reason for this, so just put the convertchars tags at the very top and bottom of the page like I suggested. They should be the first and last text that appears on the page -- no exceptions. And the one at the top of the page needs to be [convertchars db=^noReturns.db] not simply [convertchars] as you stated above.Third, did you format your noReturns.db is properly? If not, you'll have to fix it or the result will leave some cr's or lf's in the page, and the goal here is to get rod of ALL of them. If the last line in the db has anything on it other than a single carriage return, that's probably what's causing the problem. All webcat db's must end with a cr character in order to work proeprly.I posted this solution because it works for me on the MacOS and theoretically should work on all the other OS's as well, because all it's doing is removing the two new line characters used on all computer platforms -- cr's and lf's. Therefore, unless this works only on the MacOS for some reason, it seems like you've done something else wrong. So once you move the tags to the very top and bottom of the page, and fix your database, please run another test then tell me:Are *all* the cr's and lf's removed in the resulting page? Or do some of these characters still exist in the resulting browser source?Please post the source of the page after you run this test, thanks.=================================================Kenneth Grome WebDNA Consultanttelephone number: 011 63 32 486-9077telephone number: 011 63 919 749-0060business web site: http://webdna.netpersonal 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/
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:
[defined]ish (1997)
shipcost (1997)
Mac -Shareware Listserver (1998)
& in Lookups (1997)
Plugin or CGI or both (1997)
redirect with frames (1997)
[WebDNA] Need to convert unix date? (2009)
MyVitrualMerchant (2007)
Updating a database once per day - An example (1998)
[WebDNA] Help me install (WebDNA 7 fastcgi install on Lion 10.7.3) (2012)
eCommerce Solution (2000)
[listfiles] (1998)
searching problem (1998)
random sorting broken (was Re[2]: php vs WebCatalog) (2000)
[WebDNA] authorize.net / payeezy FirstData (2019)
Bcc in sendmail tag (2000)
Authenticate (1997)
Installing WebCatalog 4.5.1 (2004)
Nesting format tags (1997)
getting images' width/height (1998)