Re: variables in or out of includes

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 39218
interpreted = N
texte = Andrew Simpson wrote: > > I realise that i can do this: > > [include file=/somewhere/somefile.html¶m1=123] > > But can i expect this to work?: > > [text]param1=123[/text] > [include file=/somewhere/somefile.html] > For future reference, contexts can be considered containers. Variables defined inside a context are available inside any contexts contained within the enclosing context. Variables contained within a context are only available within that context.In pseudocode:var1=1 [context] var1 is [var1] [!] will print 1[/!] var2=2 [/context] var2 is [var2] [!] will print nothing, not in the context anymore[/!]For this purpose, a page is an enclosing context and contains all of the form variables passed in. The include file is an enclosed context and has access to all of the page variable as well as its own.HTHJohn-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747------------------------------------------------------------- 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 Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: variables in or out of includes (Michael Davis 2001)
  2. Re: variables in or out of includes (Michael Davis 2001)
  3. Re: variables in or out of includes (Andrew Simpson 2001)
  4. Re: variables in or out of includes (Brian Fries 2001)
  5. Re: variables in or out of includes (John Peacock 2001)
  6. Re: variables in or out of includes (Alain Russell 2001)
  7. Re: variables in or out of includes (Michael Davis 2001)
  8. variables in or out of includes (Andrew Simpson 2001)
Andrew Simpson wrote: > > I realise that i can do this: > > [include file=/somewhere/somefile.html¶m1=123] > > But can i expect this to work?: > > [text]param1=123[/text] > [include file=/somewhere/somefile.html] > For future reference, contexts can be considered containers. Variables defined inside a context are available inside any contexts contained within the enclosing context. Variables contained within a context are only available within that context.In pseudocode:var1=1 [context] var1 is [var1] [!] will print 1[/!] var2=2 [/context] var2 is [var2] [!] will print nothing, not in the context anymore[/!]For this purpose, a page is an enclosing context and contains all of the form variables passed in. The include file is an enclosed context and has access to all of the page variable as well as its own.HTHJohn-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747------------------------------------------------------------- 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 Web Archive of this list is at: http://search.smithmicro.com/ John Peacock

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:

MacAuthorize and WebMerchant (1997) Robert Minor duplicate mail (1997) forming a SKU (1999) [ModDate] & [ModTime] ? (1997) Initiating NewCart (1997) proper username/password *w/out* the authenticate dialog. (2000) middle (2003) Locking up with WebCatalog... (1997) eMailer replacement? (1998) Ads.db (1997) CC and Europe (1999) Wrapping text (1998) [WebDNA] listfunctions - direction of webdna (2011) This list needs a digest: rant, rave... (1997) PIXO with cometsite ... and/or other plugins (1998) Refreshing Javascript (2001) Need relative path explanation (1997) problems with 2 tags (1997) Country & Ship-to address & other fields ? (1997) [WebDNA] Require no empty field (2010)