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:

SAT test (2004) [isfolder] and [filename] (1997) Shipping.db (1998) WebCat2 several catalogs? (1997) Problem with version 4 browsers (1998) Cookies and customers with cookies turned off (2005) Not really WebCat (1997) [WebDNA] WebDNA as cgi app (was WebSite Examples) (2008) Cart Question (1998) ShowNext (1997) missing records (1998) Grant, please help me ... (1997) Database Helper Update (1998) Only charge card when product shipped ? (1997) Execute Applescript (1997) Sort on time (2003) 2.0.1 new commands and contexts (1997) PCS Frames (1997) bug in [SendMail] (1997) Help! Missing [showif] or [hideif] (2000)