Re: [WebDNA] HTML Symbol Entities

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 102194
interpreted = N
texte = There are a number of instances where you need to wrap values pulled out of a db in [input] tags. Field values in form elements, for example. And that all needs to be wrapped in quotes. If you could be a little more specific about what is breaking, it would be easier to help. On Mar 17, 2009, at 5:05 PM, Dan Strong wrote: > No, I totally hear you and am looking into that now. I'm just > trying to find an immediate fail-safe until I can really spend the > time fixing the problem. > -Dan > > > On Tue, 17 Mar 2009 14:34:15 -0600 > Govinda wrote: >> Dan >> Many greater experts here than me, but my first reaction is that >> if you are [url]ing the data as it gets into your db's, then that >> is done. But I am guessing that your problem lays in how you use >> the data later after you grab it back out and use it somewhere.. >> Like within a webdna context. Find the exact spot where >> something just broke for you due to an "&" char, and notice if it >> is a slot held by a var whose value you populate with the data >> you pull out of a db. You need to wrap that spot with [url] just >> like when you stored the data in the first place. I can be more >> specific if you show an exact example of something that just broke. >> -G >> On Mar 17, 2009, at 2:21 PM, Dan Strong wrote: >>> [rant] >>> >>> Probably a dumb question with a ridiculously easy answer as >>> usual, but bear with me... >>> >>> So over the years, I keep getting bit by these entities (‚ >>> etc.) within .db's/fields, etc. Despite strategic [URL]ery and >>> [convertchars] and [grep] and such, every now and again >>> something slips through and the ampersand ends up busting my code. >>> >>> An obvious solution to help with this is a [convertchars] .db, >>> which I have done years ago . Apparently, I must be missing some >>> entities despite using what I though were complete lists, >>> otherwise I would not have this problem anymore. >>> >>> So it happened again today on code that has worked for years now >>> I'm thoroughly sick of it and want to solve it once and for all. >>> My hasty solution? A [convertchars] with 10000 records to catch >>> every conceivable stinkin' symbol. >>> >>> [writefile=symbolConvert.db][!] >>> [/!]FROMTO[!] >>> [/!][loop start=1&end=10000]&#[index];[/ >>> loop] [!] >>> [/!][/writefile] >>> >>> My problem? What entities are symbols? Which are blank? and >>> which are normal characters (which I obviously want to keep)? >>> >>> http://www.w3schools.com/tags/ref_symbols.asp >>> >>> shows that references start as low as 30-ish and go as high as >>> 9800- ish (hence loop 1-10000), but this is just crazy... >>> >>> [loop start=1&end=10000] >>> [index]&#[index];
>>> [/loop] >>> >>> shows everything warts and all. Most symbols are blank. >>> >>> Ok so if I go the [convertchars] route, is it possible that >>> w3schools hasn't listed every-single entity, and ultimately, >>> there has got to be a better way to handle this. >>> >>> Sorry for the rant, but I'm pissed off and have a ton of other >>> things I need to be doing rather than debugging frickin' >>> ampersand issues. >>> >>> How are you all handling this issue? >>> >>> Thanks, >>> -Dan >>> >>> [/rant] >>> >>> >>> >>> >>> >>> --------------------------------------------------------- >>> 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 >>> old archives: http://dev.webdna.us/TalkListArchive/ >> --------------------------------------------------------- >> 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 >> old archives: http://dev.webdna.us/TalkListArchive/ > > --------------------------------------------------------- > 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 > old archives: http://dev.webdna.us/TalkListArchive/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] HTML Symbol Entities (Terry Wilson 2009)
  2. Re: [WebDNA] HTML Symbol Entities ("Dan Strong" 2009)
  3. Re: [WebDNA] HTML Symbol Entities (Toby Cox 2009)
  4. Re: [WebDNA] HTML Symbol Entities (Govinda 2009)
  5. [WebDNA] HTML Symbol Entities ("Dan Strong" 2009)
There are a number of instances where you need to wrap values pulled out of a db in [input] tags. Field values in form elements, for example. And that all needs to be wrapped in quotes. If you could be a little more specific about what is breaking, it would be easier to help. On Mar 17, 2009, at 5:05 PM, Dan Strong wrote: > No, I totally hear you and am looking into that now. I'm just > trying to find an immediate fail-safe until I can really spend the > time fixing the problem. > -Dan > > > On Tue, 17 Mar 2009 14:34:15 -0600 > Govinda wrote: >> Dan >> Many greater experts here than me, but my first reaction is that >> if you are [url]ing the data as it gets into your db's, then that >> is done. But I am guessing that your problem lays in how you use >> the data later after you grab it back out and use it somewhere.. >> Like within a webdna context. Find the exact spot where >> something just broke for you due to an "&" char, and notice if it >> is a slot held by a var whose value you populate with the data >> you pull out of a db. You need to wrap that spot with [url] just >> like when you stored the data in the first place. I can be more >> specific if you show an exact example of something that just broke. >> -G >> On Mar 17, 2009, at 2:21 PM, Dan Strong wrote: >>> [rant] >>> >>> Probably a dumb question with a ridiculously easy answer as >>> usual, but bear with me... >>> >>> So over the years, I keep getting bit by these entities (‚ >>> etc.) within .db's/fields, etc. Despite strategic [url]ery and >>> [convertchars] and [grep] and such, every now and again >>> something slips through and the ampersand ends up busting my code. >>> >>> An obvious solution to help with this is a [convertchars] .db, >>> which I have done years ago . Apparently, I must be missing some >>> entities despite using what I though were complete lists, >>> otherwise I would not have this problem anymore. >>> >>> So it happened again today on code that has worked for years now >>> I'm thoroughly sick of it and want to solve it once and for all. >>> My hasty solution? A [convertchars] with 10000 records to catch >>> every conceivable stinkin' symbol. >>> >>> [writefile=symbolConvert.db][!] >>> [/!]FROMTO[!] >>> [/!][loop start=1&end=10000]&#[index];[/ >>> loop] [!] >>> [/!][/writefile] >>> >>> My problem? What entities are symbols? Which are blank? and >>> which are normal characters (which I obviously want to keep)? >>> >>> http://www.w3schools.com/tags/ref_symbols.asp >>> >>> shows that references start as low as 30-ish and go as high as >>> 9800- ish (hence loop 1-10000), but this is just crazy... >>> >>> [loop start=1&end=10000] >>> [index]&#[index];
>>> [/loop] >>> >>> shows everything warts and all. Most symbols are blank. >>> >>> Ok so if I go the [convertchars] route, is it possible that >>> w3schools hasn't listed every-single entity, and ultimately, >>> there has got to be a better way to handle this. >>> >>> Sorry for the rant, but I'm pissed off and have a ton of other >>> things I need to be doing rather than debugging frickin' >>> ampersand issues. >>> >>> How are you all handling this issue? >>> >>> Thanks, >>> -Dan >>> >>> [/rant] >>> >>> >>> >>> >>> >>> --------------------------------------------------------- >>> 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 >>> old archives: http://dev.webdna.us/TalkListArchive/ >> --------------------------------------------------------- >> 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 >> old archives: http://dev.webdna.us/TalkListArchive/ > > --------------------------------------------------------- > 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 > old archives: http://dev.webdna.us/TalkListArchive/ Terry Wilson

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:

Mac Lockup Problems (1998) Sku numbers (1997) FM fields with CR - How to export/import? (2000) Resume Catalog ? (1997) Storefront Case Studies (1998) WebCat2b12 forgets serial # (1997) Use of & in text areas.... (1998) webcat- multiple selection in input field (1997) Bug Report, maybe (1997) WebCatalog can't find database (1997) Multiple 'Users.db' files not possible (1997) Webcatalog server support (1997) Newbie problem blah blah blah (1997) searching by date (1998) WebDNA-Talk Digest mode broken (1997) Assigning carts (1998) E-mail formating question (1999) Re:2nd WebCatalog2 Feature Request (1996) Using [random] (1999) OPEN MARKET PATENTS SOUND ECOMMERCE ALARM (1998)