That's because you are providing the parentheses () which executes the function there and then rather than passing the function to be executed later when the ajax request is complete.
Try. jQuery.post("/BFEWebApp/PreviewBFEDListServlet","detaillitstring=" + detailListString, processReqChange); /James On 10/26/07, SDyke <[EMAIL PROTECTED]> wrote: > > > > Can you elaborate. I have a third parameter in my calling code: > > jQuery.post("/BFEWebApp/PreviewBFEDListServlet","detaillitstring=" + > detailListString, processReqChange()); > > The processReqChange() turns on the link. However, this function is called > as soon as the post code fires. > > > Adrian Lynch-2 wrote: > > > > > > You can supply a callback function when making your AJAX call. When > > the result is returned it will run the callback and this is where you > > can make the link appear. > > > > Adrian > > > > On Oct 26, 2:34 pm, SDyke <[EMAIL PROTECTED]> wrote: > >> I am using jQuery to do an AJAX post. The servlet runs code to generate > >> an > >> Excel file. On the firing page a hyperlink appears that will display > the > >> Excel file. My problem is keeping the link from appearing before the > file > >> has finished generating. How do I use a response flag to tell the page > >> code > >> to display the link? > > > > > > > > -- > View this message in context: > http://www.nabble.com/How-to-Check-jQuery-Status-tf4697072s27240.html#a13431182 > Sent from the jQuery General Discussion mailing list archive at Nabble.com > . > > > > >