Re: Fuzzy on [url] context

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 19421
interpreted = N
texte = >(This is where they enter the new message): >[search db=msg.db&eqsubjectdatarq=[subject]&max=1] <<---here?Yes, if the [subject] could ever contain an & or =>[founditems] > <<---here?Yes, if the [subject] could ever contain a quote character like >[append db=msg.db]subject=[subject]&otherstuff[/append] <<---here?Yes, if the subject could ever contain & or =>[subject]Yes, if the [subject] could ever contain &, space, or =.The idea behind the [URL] context is that certain letters are illegal in some places. An HREF, for instance, must never contain a space, because it freaks out the browser and web server. Somewhat more subtle, but just as important, is text that happens to contain delimiter characters like & and =. Humans can see that the ampersand inside Casady&Greene means something very different from var1=Casady&var2=Greene, yet the computer is not so smart. So the [URL] context also converts & and = into special sequences that will automatically get converted back when necessary.So companyName=Casady&Greene won't do what you hope it will, but if you look at what companyName=[URL]Casady&Greene[/URL] displays, you'll see it becomes companyName=Casady%26Greene. If you append some text that looks like that to a database using WebDNA, you'll see that the actual text put into the database is Casady&Greene, because WebCatalog always decodes the URL-encoded text before storing it in the field.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Fuzzy on [url] context (PCS Technical Support 1998)
  2. Fuzzy on [url] context (Terry Wilson 1998)
>(This is where they enter the new message): >[search db=msg.db&eqsubjectdatarq=[subject]&max=1] <<---here?Yes, if the [subject] could ever contain an & or =>[founditems] > <<---here?Yes, if the [subject] could ever contain a quote character like >[append db=msg.db]subject=[subject]&otherstuff[/append] <<---here?Yes, if the subject could ever contain & or =>[subject]Yes, if the [subject] could ever contain &, space, or =.The idea behind the [url] context is that certain letters are illegal in some places. An HREF, for instance, must never contain a space, because it freaks out the browser and web server. Somewhat more subtle, but just as important, is text that happens to contain delimiter characters like & and =. Humans can see that the ampersand inside Casady&Greene means something very different from var1=Casady&var2=Greene, yet the computer is not so smart. So the [url] context also converts & and = into special sequences that will automatically get converted back when necessary.So companyName=Casady&Greene won't do what you hope it will, but if you look at what companyName=[url]Casady&Greene[/URL] displays, you'll see it becomes companyName=Casady%26Greene. If you append some text that looks like that to a database using WebDNA, you'll see that the actual text put into the database is Casady&Greene, because WebCatalog always decodes the URL-encoded text before storing it in the field.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ PCS Technical Support

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:

Re:2nd WebCatalog2 Feature Request (1996) Press Release hit the NewsWire!!! (1997) Emailer Error Question (1998) WebCat2final1 crashes (1997) [OT] Imagemagick (2004) Sherlock plug-in? (1999) Tax calculation problem (2003) RE: [WebDNA] Build Name for 6.1 (2008) Re2: frames & carts (1997) Digest for 4/18/97 (1997) [date] formatting bug inside [orderfile]? (1998) Navigator 4.01 (1997) Showing unopened cart (1997) [WebDNA] Friday's.. WIP thread (2009) Interactive Online Docs Was: [OT] Mozilla | Was: R.I.P. (2003) thankyou.tmpl (1997) WebCat2: Formulas.db question (1997) A multi-processor savvy WebCatalog? (1997) Modifying order output (1997) Banner DNA (1997)