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. Variablesdefined inside a context are available inside any contexts containedwithin the enclosing context. Variables contained within a contextare 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 ofthe form variables passed in. The include file is an enclosed contextand has access to all of the page variable as well as its own.HTHJohn-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 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:
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. Variablesdefined inside a context are available inside any contexts containedwithin the enclosing context. Variables contained within a contextare 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 ofthe form variables passed in. The include file is an enclosed contextand has access to all of the page variable as well as its own.HTHJohn-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 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)