Hi,

In my application I have a input form where the user can set a date
range (years,months,quarters).
The input is sent to the server via a call made with

$('form_id').ajaxSubmit({
dataType: 'script',
beforeSend: function(xhr) {xhr.setRequestHeader("Accept", "text/
javascript");}
});

Depending on the input, the server will query the database and when
data is found,
a html table is dynamically displayed containing a link where the user
can download a pdf version
of the data.

When the user clicks on the link another ajax call is made to retrieve
the pdf data. My server
recognizes this request and via a Ruby on Rails call to  send_data
(application/pdf, disposition inline),
the server sends the pdf data to the client.

My problem is that the client does not start the pdf reader ?
Hope someone can help me.

Thanks
WN

Reply via email to