Re: [WebDNA] MIDDLE problems
This WebDNA talk-list message is from 2012
It keeps the original formatting.
numero = 109270
interpreted = N
texte = >>=20>> I don't know why ..... but this works:>>=20>> [Middle StartAfter=3D[URL]+61[/URL]]+61 (02) 8971>> 4431[/Middle]> This is the way it should work. In general you need to=20> [url] values inside tags, not inside contexts.right.=20...because inside the context is the data which we do not want to change =(and if we do change it there, e.g. by [url]'ing it, then we have not =added any magic or useful effect, but simply changed the data). BUT =*inside the tag* we have to escape content coming from variables, in =case of special characters, in order to prevent the tag from possibly =breaking... and in tag parameters Webdna DOES do auto-magic to [unUrl], =under the hood, so that our/any [url]'ing will work to escape the data =AND also not corrupt our data.I don't know how thoroughly consistent is Webdna's auto-magicical =[unUrl]'ing around tag parameters.. but it is consistent enough that I =always try the solution you discovered Stuart, whenever I get stuck with =something breaking.-Govinda=
Associated Messages, from the most recent to the oldest:
>>=20>> I don't know why ..... but this works:>>=20>> [Middle StartAfter=3D
[url]+61[/URL]]+61 (02) 8971>> 4431[/Middle]> This is the way it should work. In general you need to=20>
[url] values inside tags, not inside contexts.right.=20...because inside the context is the data which we do not want to change =(and if we do change it there, e.g. by
[url]'ing it, then we have not =added any magic or useful effect, but simply changed the data). BUT =*inside the tag* we have to escape content coming from variables, in =case of special characters, in order to prevent the tag from possibly =breaking... and in tag parameters Webdna DOES do auto-magic to
[unurl], =under the hood, so that our/any
[url]'ing will work to escape the data =AND also not corrupt our data.I don't know how thoroughly consistent is Webdna's auto-magicical =
[unurl]'ing around tag parameters.. but it is consistent enough that I =always try the solution you discovered Stuart, whenever I get stuck with =something breaking.-Govinda=
Govinda
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:
quantity minimum problem (1997)
[WebDNA] encrypt files/directories (2011)
Hiding URL ? (1998)
Country & Ship-to address & other fields ? (1997)
Moment of Thanks (1997)
Re:2nd WebCatalog2 Feature Request (1996)
[WebDNA] mod_WebDNA_apache2.2.so: mach-0, but wrong architecture (2010)
Emailer port change (1997)
PIXO support (1997)
Emailer setup (1997)
help (2000)
RE: E-mailer error codes (1997)
WebCat2b13MacPlugin - nested [xxx] contexts (1997)
Maybe off topic but how to charge (1997)
rotating thumbnails (1997)
Not seeing cart info on Invoice.tmpl (was PROBLEM) (1997)
Ok here is a question? (1997)
passing cart value (2003)
Quick ShowIf question (1997)
Possible Bug in 2.0b15.acgi (1997)