aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes gloabal variable value not assigning Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "gloabal variable value not assigning" Watch "gloabal variable value not assigning" New topic

gloabal variable value not assigning

Sridhar Ranganthan
Ranch Hand

Joined: Mar 12, 2009
Posts: 35

global variable value is not assiging during asynchronous call.

consider the below ex

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 62817

Because the request is asynchronous. Line 10 executes after the request is made but it's not going to wait for the request to complete so the variable has yet to be updated.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Consider Paul's rocket mass heater.
subject: gloabal variable value not assigning