R
ruca
How can I declare a global variable in my .js file, that I can preserve her
value each time I need to call any function of .JS file in my ASP.NET
application?
Example:
var aux=null;
function myFunction1()
{
...
}
function myFunction2()
{
...
}
Now when I call myFunction1(), aux = true, and when I call myFunction2(),
aux = false. The problem is that I need to preserve the previous value to
test it in both functions. How?
Help me please.
Both functions are called in click event of 2 button's.
value each time I need to call any function of .JS file in my ASP.NET
application?
Example:
var aux=null;
function myFunction1()
{
...
}
function myFunction2()
{
...
}
Now when I call myFunction1(), aux = true, and when I call myFunction2(),
aux = false. The problem is that I need to preserve the previous value to
test it in both functions. How?
Help me please.
Both functions are called in click event of 2 button's.