• Post Reply Bookmark Topic Watch Topic
  • New Topic

Ajax request after flush in a response  RSS feed

Robert Siqueira
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi !

I have an application which has one button to do a search and other to generate a PDF report.

The first button does ajax requests.. and the report button does a normal request.

when I click the button to generate a report, I execute the code bellow (the code is not complete, but this is the important part):



This code works and return the file to download or open.

After that, if I click the button to do other search (remeber that its a ajax request) the method responsible is called but,
after, the method responsible for the download (done before) is called again and so, i get an error..

I dont know why the download method has been calling again.. This occurs only If I generate de report first...

I think is something related with the ajax request..

Any ideas ?



Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!