Displaying 2 results from an estimated 2 matches for "pdf_report".
Did you mean:
pdf_reports
2006 Mar 15
8
Ajax request for file downloads
...before, but is it possible to
get a file download as a response from Ajax.Request? I know you can
have response txt or xml, but how would I go about requesting a file
download?
Currently I''m requesting the download like this:
window.location =
''http://www.mysite.com/pdf_reports.php?id=1&mnt=05&yr=2005'';
But as you know, this ties up the browser and gives me little control of
the download.
Any thoughts/experiences would greatly be appreciated!
Ian Tyndall
2010 Aug 02
1
Any way around using only 1 render per action?
...r_and_household_id(Date.today.year-2,
@household.id)
render( :action=>:printone)
}
date=`date +%Y%m%d-%H:%M`
respond_to do |format|
format.pdf { send_data render_to_pdf( :action => ''print'',
:layout => ''pdf_report''),
:filename =>
"Household_List_for_" + date }
as the name says, print_one does 1 page of the report for 1 user. It
needs the above variables to do the page.
Thanks for the help...