Re: code to phantom spacing

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 36696
interpreted = N
texte = Sir! I think you nailed it!I'm going to test a bit, and I will report back. As for the css burp, I forgot Netscape balks at broken stylesheet links. IE does not. If the problem is not solved, I'll fix that up and repost that I have done so.Back in a while!Jon __________________________ Jon Robinson Chakra5 studios http://www.chakra5.netjon@chakra5.net (206) 781-0140 (o) (206) 228-0451 (c) > Contrary to John Peacock's comments below, I don't have a problem > with using [text] variables to store [math] values -- I do this often > when I have a lot of variables on a page, because there is a limit to > the number of [math] variables WebCat can handle as well as the > length of math variable names. > > I cannot load your trouble.. pages - I get a not found error on > style_fcdc.css... > > More constructively, however, looking at your include file, which is > the obvious source of the bulk of your line feed characters, I would > use the comment method rather than the convertchars method on this, > as it's better to never generate the characters at all than to > generate them then use convertchars to strip them (nothing against > Ken's convertchars method - I frequently use a similar technique)... > > So, I would make the include file look more like this: > > [text > show=f]number_of_chars_in=[countchars][string_to_check][/countchar > s][/text][!] > [/!][text > show=f]number_of_chars_legal=[countchars][legal_string][/countchar > s][/text][!] > [/!][text show=f]all_chars_are_legal=true[/text][!] > [/!][loop start=1&end=[number_of_chars_in]&advance=1][!] > [/!][text show=f]string_char=[getchars > start=[index]&end=[index]][string_to_check][/getchars][/text][!] > [/!][text show=f]outside_index=[index][/text][!] > [/!][text show=f]counter=0[/text][!] > [/!][loop start=1&end=[number_of_chars_legal]&advance=1][!] > [/!][showif [getchars > start=[outside_index]&end=[outside_index]][string_to_check][/getch > ars]=[getchars > start=[index]&end=[index]][legal_string][/getchars]] [!] > [/!][text show=f]counter=[math][counter]+1[/math][/text][!] > [/!][/showif][!] > [/!][/loop] [!] > [/!][showif [counter]=0][!] > [/!][text show=f]all_chars_are_legal=false[/text][!] > [/!][/showif][!] > [/!][/loop] > > -brian > > At 4:37 PM 6/25/2001, John Peacock wrote: > >Jon Robinson wrote: > >> > >> > > >> > >FYI- The db was again hit and blanks added. I often leave > a db open as I > >> > >work and can watch it be updated, and this one is being updated. > >> > There ends > >> > >up being two records with blanks in each field. > >> > > >> > The blanks won't be a problem, they are simply ignored. > >> > > >> > > >> > >After your comment that it might be a db problem, I got to > thinking, the > >> > >same might be true about includes. I know it's not quite > the same, but it > >> > >turns out that an include I'm using to check alphanumerics for > >> > each of the > >> > >many fields in my form is somehow producing the majority > of the garbage. > >> > > >> > There must be a character in it other than a cr or a lf > then, because > >> > my solution eliminates all the cr's and lf's. > >> > > >> > You've never posted the source from your browser after running my > >> > solution, so I don't have any actual text to look at to see what > >> > characters are causing the problem. Please post the resulting source > >> > HTML after running my solution so I can check it, thanks. > >> > >> Ken, > >> > >> If by the code I get when I view source after running the > code, here is is. > >> I actually posted these in several previous messages, so I > have not been > >> ignoring you request. Maybe you are refering to something else though. > >> > >> source code from browser after running your solution: > >> http://www.chakra5.net/client/jon/webcat/trouble1.html > >> http://www.chakra5.net/client/jon/webcat/trouble2.html > >> http://www.chakra5.net/client/jon/webcat/trouble3.html > > > >These are all 404's > > > >> > >> database after the same: > >> http://www.chakra5.net/client/jon/webcat/noReturns1.db > >> http://www.chakra5.net/client/jon/webcat/noReturns2.db > >> http://www.chakra5.net/client/jon/webcat/noReturns3.db > > > >These are all worthless, since we cannot see any characters outside of > >what a browser will handle (and then it will interpret them as it sees > >fit). > > > >> > >> string check loop that is exaserbating the issue: > >> http://www.chakra5.net/client/jon/webcat/string_check.inc > >> > > > >This is just plain ugly. I don't have time to decode what you are > >trying to do, but for a start, if you are doing math on a variable, > >then it needs to be a math variable, right??? Wrapping [text] around > >[math] is just pure wrong; there is no good way to say it. Change > >all of your variables to [math] except [all_chars_are_legal] which is > >a logical and can be stored as text. > > > >I have no idea what you intend the [convertchars] to do; I am assuming > >you are trying to suppress all of the returns generated by that text. > >You should forget about doing anything about extra returns until your > >inside code works, which I doubt it does now. > > > >John > > > >-- > >John Peacock > >Director of Information Research and Technology > >Rowman & Littlefield Publishing Group > >4720 Boston Way > >Lanham, MD 20706 > >301-459-3366 x.5010 > >fax 301-429-5747 > > > >------------------------------------------------------------- > >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/ > ------------------------------------------------------------- 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)
Sir! I think you nailed it!I'm going to test a bit, and I will report back. As for the css burp, I forgot Netscape balks at broken stylesheet links. IE does not. If the problem is not solved, I'll fix that up and repost that I have done so.Back in a while!Jon __________________________ Jon Robinson Chakra5 studios http://www.chakra5.netjon@chakra5.net (206) 781-0140 (o) (206) 228-0451 (c) > Contrary to John Peacock's comments below, I don't have a problem > with using [text] variables to store [math] values -- I do this often > when I have a lot of variables on a page, because there is a limit to > the number of [math] variables WebCat can handle as well as the > length of math variable names. > > I cannot load your trouble.. pages - I get a not found error on > style_fcdc.css... > > More constructively, however, looking at your include file, which is > the obvious source of the bulk of your line feed characters, I would > use the comment method rather than the convertchars method on this, > as it's better to never generate the characters at all than to > generate them then use convertchars to strip them (nothing against > Ken's convertchars method - I frequently use a similar technique)... > > So, I would make the include file look more like this: > > [text > show=f]number_of_chars_in=[countchars][string_to_check][/countchar > s][/text][!] > [/!][text > show=f]number_of_chars_legal=[countchars][legal_string][/countchar > s][/text][!] > [/!][text show=f]all_chars_are_legal=true[/text][!] > [/!][loop start=1&end=[number_of_chars_in]&advance=1][!] > [/!][text show=f]string_char=[getchars > start=[index]&end=[index]][string_to_check][/getchars][/text][!] > [/!][text show=f]outside_index=[index][/text][!] > [/!][text show=f]counter=0[/text][!] > [/!][loop start=1&end=[number_of_chars_legal]&advance=1][!] > [/!][showif [getchars > start=[outside_index]&end=[outside_index]][string_to_check][/getch > ars]=[getchars > start=[index]&end=[index]][legal_string][/getchars]] [!] > [/!][text show=f]counter=[math][counter]+1[/math][/text][!] > [/!][/showif][!] > [/!][/loop] [!] > [/!][showif [counter]=0][!] > [/!][text show=f]all_chars_are_legal=false[/text][!] > [/!][/showif][!] > [/!][/loop] > > -brian > > At 4:37 PM 6/25/2001, John Peacock wrote: > >Jon Robinson wrote: > >> > >> > > >> > >FYI- The db was again hit and blanks added. I often leave > a db open as I > >> > >work and can watch it be updated, and this one is being updated. > >> > There ends > >> > >up being two records with blanks in each field. > >> > > >> > The blanks won't be a problem, they are simply ignored. > >> > > >> > > >> > >After your comment that it might be a db problem, I got to > thinking, the > >> > >same might be true about includes. I know it's not quite > the same, but it > >> > >turns out that an include I'm using to check alphanumerics for > >> > each of the > >> > >many fields in my form is somehow producing the majority > of the garbage. > >> > > >> > There must be a character in it other than a cr or a lf > then, because > >> > my solution eliminates all the cr's and lf's. > >> > > >> > You've never posted the source from your browser after running my > >> > solution, so I don't have any actual text to look at to see what > >> > characters are causing the problem. Please post the resulting source > >> > HTML after running my solution so I can check it, thanks. > >> > >> Ken, > >> > >> If by the code I get when I view source after running the > code, here is is. > >> I actually posted these in several previous messages, so I > have not been > >> ignoring you request. Maybe you are refering to something else though. > >> > >> source code from browser after running your solution: > >> http://www.chakra5.net/client/jon/webcat/trouble1.html > >> http://www.chakra5.net/client/jon/webcat/trouble2.html > >> http://www.chakra5.net/client/jon/webcat/trouble3.html > > > >These are all 404's > > > >> > >> database after the same: > >> http://www.chakra5.net/client/jon/webcat/noReturns1.db > >> http://www.chakra5.net/client/jon/webcat/noReturns2.db > >> http://www.chakra5.net/client/jon/webcat/noReturns3.db > > > >These are all worthless, since we cannot see any characters outside of > >what a browser will handle (and then it will interpret them as it sees > >fit). > > > >> > >> string check loop that is exaserbating the issue: > >> http://www.chakra5.net/client/jon/webcat/string_check.inc > >> > > > >This is just plain ugly. I don't have time to decode what you are > >trying to do, but for a start, if you are doing math on a variable, > >then it needs to be a math variable, right??? Wrapping [text] around > >[math] is just pure wrong; there is no good way to say it. Change > >all of your variables to [math] except [all_chars_are_legal] which is > >a logical and can be stored as text. > > > >I have no idea what you intend the [convertchars] to do; I am assuming > >you are trying to suppress all of the returns generated by that text. > >You should forget about doing anything about extra returns until your > >inside code works, which I doubt it does now. > > > >John > > > >-- > >John Peacock > >Director of Information Research and Technology > >Rowman & Littlefield Publishing Group > >4720 Boston Way > >Lanham, MD 20706 > >301-459-3366 x.5010 > >fax 301-429-5747 > > > >------------------------------------------------------------- > >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/ > ------------------------------------------------------------- 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:

[OT] Disable/enable field (2003) Protect (1997) WebCatalog Upgrade Pricing? (1997) How do I get data out of an Orderfile... (2001) Authenticate (1997) Multiple Users.db Possible? (1997) Nested tags count question (1997) How to Sort Summ data ? (1997) [WebDNA] HTML5 (2010) WebDNA Speed Test (2008) Hosts who have upgraded to v5.0? (2003) math problems (2000) 'Document Contains No Data' (1999) Hard Questions ? (1997) Press Release hit the NewsWire!!! (1997) WebCat & WebTen (1997) Freeze (2003) Emailer setup (1997) NetSplat and WebCat2 (1997) two of the same named db's open at once (1998)