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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "gloabal variable value not assigning" Watch "gloabal variable value not assigning" New topic
Author

gloabal variable value not assigning

Sridhar Ranganthan
Ranch Hand

Joined: Mar 12, 2009
Posts: 35
HI,

global variable value is not assiging during asynchronous call.


consider the below ex




Thanks,
sri.R
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60049
    
  65

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: gloabal variable value not assigning
 
Similar Threads
Select All and Clear All implementation in JSF
Need Help with Ajax.
[Ajax] if callback function has parameters?
auto-increment no.(sequential no.) in javascript?
Accessing a variable outside of a javascript function?