It's async, not asynch. -- Ariel Flesler http://flesler.blogspot.com
On 23 nov, 12:40, howardk <[EMAIL PROTECTED]> wrote: > Am I misunderstanding how $.ajax( { ..., asynch: false } is supposed > to work? I'm not seeing a responseText value immediately on returning > from the ajax call as I would expect. > > Here's the relevant code: > > -------------------------------------------------------------------------- > var xhr = $.ajax( { > url:' getFontInfo.php', > data: 'font=' + fontFileName, > asynch: false > } ); > > var fontName = xhr.responseText; > -------------------------------------------------------------------------- > > fontName is empty when I break in Firebug just after the last line > above. If I break further down in the code, fontName gets filled out > to its expected value. This seems to be an Ajax-complete issue, but I > had thought setting asynch false would ensure I'd block on the Ajax > call until responseText showed up. Is that a incorrect assumption? > > Howard