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:

Ampersand (1997) [WriteFile] problems (1997) Include a big block of text (1997) RE: Answer: WebDelivery downloads alias, not original ? (1997) RE: ANother SHOWIF problem (1997) Wanted: Broader string manipulation functions (1997) Parameter Passing (2000) Proper file locations (1997) [WebDNA] Alt Web Servers OS X (2011) RE: Can a database get stomped by simultaneous access? (1997) WebDNA Solutions ... (1997) Nested tags count question (1997) MOD_REWRITE Search Engine Friendly URLs (2008) Multiple prices (1997) Not really WebCat- (1997) encryption madness (2003) [OT] JS Help PLEASE (2006) faxing orders (2000) nesting limits? (1998) Bug Report, maybe (1997)