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:
WebCat2b15MacPlugin - showing [math] (1997)
[ShowNext] feature in 2.0 (1997)
MOOOOOO (2000)
NetSplat and WebCat2 (1997)
Date format problems (1997)
NT or Mac (1997)
OSX Install error (2000)
emailer (1997)
how to set a new cart number periodically (1999)
[REPLACE] problems (2001)
more multiple items to shopping cart (2000)
Logging purchases (1997)
off topic - dna snipets (1997)
Thanks for tips, more quest (1997)
Max Record length restated as maybe bug (1997)
New WebCatalog Version !!! (1997)
database problem (2003)
Progress !! WAS: Trouble with formula.db (1997)
webDNA and ASP pages (1997)
Which is Faster (1998)