Hi...
I have a global variable that needs to be updated from inside the
callback... i tried somtheing very simple because the more complex code
is not working... but not even this worked...see

-----------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){
   saul = 'uName'; <---THIS DOESN'T UPDATE THE GLOBAL VARIALBE IT IS
TREATED AS A LOCAL VARIABLE
}
</script>
---------------------------------------------------

if I output an alert after the function that calls the callback the
global varialbe still has the original value....

Does anybody know how to update global variables within the callback.

-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
-~----------~----~----~----~------~----~------~--~---

Reply via email to