Re: Clean Code: Rules for inserting keyboard returns?

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 13403
interpreted = N
texte = >A rough rule is that a list of parameters (anything within a tag or context >tag) cannot be broken up. Text within a context (between the tags) can be >broken up.One caveat to this: when you are doing [replace] or [append], make sure you realize that the fields inside the context get set to literally whatever you type, so putting a return inside there will stuff a return into your database field. Here's an example of what to watch out for:Good: [replace db=xxx&eqSKUdata=1]title=fred&description=joe[/replace]Bad: [replace db=xxx&eqSKUdata=1] title=fred &description=joe [/replace]This second one tells WebCatalog to look for a fieldname called title (which doesn't exist) and also replace description with joeGrant Hulbert, V.P. Engineering | ===== Tools for WebWarriors ===== Pacific Coast Software | WebCatalog Pro, WebCommerce Solution 11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Associated Messages, from the most recent to the oldest:

    
  1. Re: Clean Code: Rules for inserting keyboard returns? (Grant Hulbert 1997)
  2. Re: Clean Code: Rules for inserting keyboard returns? (John Hill 1997)
  3. Clean Code: Rules for inserting keyboard returns? (Steve Rosenbaum 1997)
>A rough rule is that a list of parameters (anything within a tag or context >tag) cannot be broken up. Text within a context (between the tags) can be >broken up.One caveat to this: when you are doing [replace] or [append], make sure you realize that the fields inside the context get set to literally whatever you type, so putting a return inside there will stuff a return into your database field. Here's an example of what to watch out for:Good: [replace db=xxx&eqSKUdata=1]title=fred&description=joe[/replace]Bad: [replace db=xxx&eqSKUdata=1] title=fred &description=joe [/replace]This second one tells WebCatalog to look for a fieldname called title (which doesn't exist) and also replace description with joeGrant Hulbert, V.P. Engineering | ===== Tools for WebWarriors ===== Pacific Coast Software | WebCatalog Pro, WebCommerce Solution 11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Grant Hulbert

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:

webcat2b12 CGI -- Date comparisons (1997) WebCatalog2 Feature Feedback (1996) Summing fields (1997) Line ending nuisance (2005) updating a series of records via a text file? (1999) AutoCommit Preference? (1998) [WebDNA] Apply discount using a line item (2011) [movefile] (1999) Sorting... stumped. (2006) POST Datamissing? (1998) Running 2 two WebCatalog.acgi's (1996) Storebuilder documentation (2004) This list needs a digest: rant, rave... (1997) PIXO with cometsite ... and/or other plugins (1998) WebCat2b12 CGI Mac -- Problems propagating the cart through frames...still (1997) Version 2.1.3 changes ... (1998) Not possible to unsubscribe (2007) Nested tags count question (1997) Pithy questions on webcommerce & siteedit (1997) spaces in db (2001)