Hi,
the difference is that you can only have one "testvar" where using the
context you can have many... ;)
I.e. if you have a DIV html element and you want to add a click
handler that will call an ajax method and then will display the result
in the DIV innerHTML property you only write the method once, don't
care about how many DIV element will have this feature.
Regards,
Michael
On 5/31/06, o0JoeCool0o <[EMAIL PROTECTED]> wrote:
>
> hmmm what is the different between using context and declaring it as a
> Page level variable? that way its available to all funcitons on the
> page...
>
> like
>
> var testvar ="hello";
>
> function 1(){
> alert(testvar);
> }
>
> function2(){
> alert(testvar);
> }
>
>
> >
>
--
Best regards | Schöne Grüße
Michael
Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer
http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/
mailto:[EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ajax.NET Professional" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/ajaxpro
The latest downloads of Ajax.NET Professional can be found at
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---