Yeah... this was an error while typing the example. The global variable
is - s
-----------first script block with global declaration
<head>
<script language="javascript">
var s = 'saul';
function x(){
getSomething();
}
</script>
</head>
------second script block-----------------------
<script language="javascript">
function getSomething(){
Mypage._default.getContentType(getContentType_Callback);
}
function getContentType_Callback(response){
s = 'uName'; <---THIS DOESN'T UPDATE THE GLOBAL VARIALBE IT IS
TREATED AS A LOCAL VARIABLE
}
</script>
---------------------------------------------------
I really appreciate any help... I have been stuck on this simple issue
for hrs. - thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---