I have a file_column that points to a pdf. I want that pdf to open in a
new window, thus wrote the code:
<%= link_to(''PDF version'',
url_for_file_column(''floor_plan'',
''pdf_file''), :popup => true) %>
which generates the code:
<a href="/floor_plan/pdf_file/12/first_floor.pdf"
onclick="window.open(this.href);return false;">PDF
version</a>
The problem is that while this works in IE/Win it opens a blank popup on
Safari and Mozilla, and opens the PDF in Preview (well, Mozilla asks
first). So, the only case where this construct works is IE/Win. Wow!
Any thought on how to make the PDF appear in the popup, as originally
planned? I don''t want to litter people''s downloads directories
with
PDFs.
TIA
--
Posted via http://www.ruby-forum.com/.