jQuery in Action, 3rd edition
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
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: 36

global variable value is not assiging during asynchronous call.

consider the below ex

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63858

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] [About Bear] [Books by Bear]
I agree. Here's the link: http://aspose.com/file-tools
subject: gloabal variable value not assigning
It's not a secret anymore!