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:

archiving images (2006) Text data with spaces in them... (1997) Conversion Database Blues (2001) date (2002) setting cookies with [setcookie] (1998) HEADER AND FOOTER (1997) [WebDNA] Email delivery problems? (2010) turning every 5th line red (1998) Mac: LModelDirector bug fix (1997) What abobut variables named max ??? (2000) Caching [include] files ... (1997) America Online Issues (1998) Off-Topic: List of common port numbers? (2002) [WebDNA] =?windows-1252?Q?Re=3A_=5BWebDNA=5D_=5BWebDNA=5D_=5Bthisurlplusg?= (2013) default value from Lookup (was Grant, please help me) (1997) lineitems are gone (1998) Size limit for tmpl editor ? (1997) Help formatting search results w/ table (1997) Changes to the List (1997) searchable list archive (1997)