Scope of the WML variables
What is the scope of the variables in wml pages, spans only card?, deck?,
digest? or global to entire site?
How does Function WMLBrowser.getVar("variable name") works? where it looks
for specified variable?
Re: Scope of the WML variables
The scope of wml vars is global to the wml browser environment.
What this means is that the vars are visible accross not only
cards but decks.Not only can those vars be read from anywhere,
they can also be written from anywhere.
Practically,this means that you can declare a var in any deck,and the other
decks & cards can access it,as does your wmlscript with getVar..
The flip side of this is that any wml deck, even one written by another programer
can override your var in your deck ,if that developer uses the same var name...
Actually, any card can destroy all variables and the entire browser history,
using the 'newcontext' attribute of the
Hope this helps.
"Chandra" <firstname.lastname@example.org> wrote:
> What is the scope of the variables in wml pages, spans only card?, deck?,
>digest? or global to entire site?
>How does Function WMLBrowser.getVar("variable name") works? where it looks
>for specified variable?
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL