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 Solution11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Associated Messages, from the most recent to the oldest:
>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 Solution11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/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:
Creating main- and sub-category search (1997)
[WebDNA] Virtual host configuration... (2017)
Trigger: Only on Saturday (2001)
RequiredFields template (1997)
Purging the .hdr file from cache ... ? (2003)
[WebDNA] [append] does not add the newline char at the end of the new record?! (which causes subsequent [search] to fail.) (2009)
[addlineitems] (1997)
Document Contains No Data! (1997)
Major bug report on rootbeer (1997)
taxTotal, too (1997)
International Orders (1998)
Multiple Fulfillment Emails (2002)
Summing fields (1997)
Resume Catalog ? (1997)
WebCommerce: Folder organization ? (1997)
[WebDNA] Putting '&search' into URL killing all search contexts on my sites (2010)
Include a big block of text (1997)
How can I record purchases to a database? (1998)
Field name-subcategory (1997)
problems with 2 tags (1997)