Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Variable scope in Javascript driving me nuts [SOLVED]
- Date: Fri, 27 Aug 2010 14:50:12 +0900
- From: Dave M G <dave@example.com>
- Subject: Re: [tlug] Variable scope in Javascript driving me nuts [SOLVED]
- References: <4C769657.5040705@example.com> <0A1A4EBC-F40B-44A9-AB82-EEC7E6117BFD@example.com>
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
Philipp, Thanks for responding.Now you're telling jQuery to asynchronously POST the JSON data and call the function checkResult *when the request is finished*! However, your outside function just continues immediately after this line. It doesn't wait for any result!Dude... you just wrinkled my brain! I get it now.I thought that "asynchronous" in a web development context simply meant "doing stuff without reloading the web page". I didn't realize it meant "doing stuff even at the same time as other Javascript being executed".Now that I grasp that asynchronous JSON posting happens *really* asynchronously, I have to alter my approach.Thanks for setting me straight, and thanks to everyone else who posted helpful advice!-- Dave M G
- References:
- [tlug] Variable scope in Javascript driving me nuts
- From: Dave M G
- Re: [tlug] Variable scope in Javascript driving me nuts
- From: Philipp Wollermann
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] .bashrc not being source correctly
- Next by Date: Re: [tlug] Die, "Adobe Bridge Workspace File"! Die!
- Previous by thread: Re: [tlug] Variable scope in Javascript driving me nuts
- Next by thread: Re: [tlug] Variable scope in Javascript driving me nuts
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links