Re: what does [url] copy [/url] really do?

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 28546
interpreted = N
texte = the data is only [url]ed until the [append] or [replace] (or whatever) context is done 'rendering' itself, then at the moment it actually modifies a db, it automagically [UnURL]s the data so the data in your db is what the user actually typed in, not the hexadecimal version. Webcat only keeps the data [URL]ed as long as necessary to keep the context from breaking. But when you use [URL] in [showif]s and [hideif]s the comparison will only do its job when both sides are in their hexadeciaml form (assuming at least 1 character gets translated into hexadecimal form), so-[showif [URL][var1][/URL]=hello world] do this code [/showif] will NOT evaluate to true even if var1='hello world'.You have to [URL] BOTH sides, like so- [showif [URL][var1][/URL]=[URL]hello world[/URL]] do this code [/showif]I didn't use very exact language, but hopefully you understand.-JohnEric Ridgley wrote:> I have noticed that there are a few things (if not more) in the syntax of > WebDNA that are used for more than they are intended. I am 'new' (less than > 1 year experience with WebCat) to this web solution and am trying to master > it, as we all are, I am sure. I recently had a run in with the [listfiles] > context and had been moving the files as I was listing them. This of course > (I know now) did not produce the results I expected because of the way that > WebCat dealt with it's own code, I won't get into that now, and it's cool > because now I understand what WebCat does first and how it deals with it's > 'WebDNA' as it parses that particular context. But what I really want to > know is that when I wrap data in: > > [url]data[/url] > > tags when I am appending to a database, what format is the data in? > HEXIDECIMAL? > > See I was trying to stay away from it because I 'thought' that all my spaces > in my code where going to be '%20' and I would have to [unurl]data[/unurl] > them but that is not the case. Can someone give me some insight into this? > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Associated Messages, from the most recent to the oldest:

    
  1. Re: what does [url] copy [/url] really do? (John Butler 2000)
  2. what does [url] copy [/url] really do? (Eric Ridgley 2000)
the data is only [url]ed until the [append] or [replace] (or whatever) context is done 'rendering' itself, then at the moment it actually modifies a db, it automagically [unurl]s the data so the data in your db is what the user actually typed in, not the hexadecimal version. Webcat only keeps the data [url]ed as long as necessary to keep the context from breaking. But when you use [url] in [showif]s and [hideif]s the comparison will only do its job when both sides are in their hexadeciaml form (assuming at least 1 character gets translated into hexadecimal form), so-[showif [url][var1][/URL]=hello world] do this code [/showif] will NOT evaluate to true even if var1='hello world'.You have to [url] BOTH sides, like so- [showif [url][var1][/URL]=[url]hello world[/URL]] do this code [/showif]I didn't use very exact language, but hopefully you understand.-JohnEric Ridgley wrote:> I have noticed that there are a few things (if not more) in the syntax of > WebDNA that are used for more than they are intended. I am 'new' (less than > 1 year experience with WebCat) to this web solution and am trying to master > it, as we all are, I am sure. I recently had a run in with the [listfiles] > context and had been moving the files as I was listing them. This of course > (I know now) did not produce the results I expected because of the way that > WebCat dealt with it's own code, I won't get into that now, and it's cool > because now I understand what WebCat does first and how it deals with it's > 'WebDNA' as it parses that particular context. But what I really want to > know is that when I wrap data in: > > [url]data[/url] > > tags when I am appending to a database, what format is the data in? > HEXIDECIMAL? > > See I was trying to stay away from it because I 'thought' that all my spaces > in my code where going to be '%20' and I would have to [unurl]data[/unurl] > them but that is not the case. Can someone give me some insight into this? > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to John Butler

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:

form data submission gets truncated (1997) Public beta 5 of WebCatalog 4.0 is now available (2000) nslookup (2000) Running 2 two WebCatalog.acgi's (1996) question: search return in order (1997) [WebDNA] Ubuntu 14.04 & WebDNA (2017) [WebDNA] OT survey .... (2012) [OT] Google Codesearch (2006) Search question (1999) Memory Error message (1998) [group] ? (1997) webcat NT with [dos] command (1997) Reserved word? (2005) Hierarchy of form/text/math variables (renamed thread) (2000) strange result? (2003) WebCat2b12 - nesting [tags] (1997) Grep not working, shows [grep] in browser (2000) [ShowNext] (1997) PageMaker/Quark to db (1999) Trouble with formula.db + more explanation (1997)