[Javascript] downloading pdf into ie with javascript redirect

john saylor js0000 at gmail.com
Tue Mar 27 10:18:38 CDT 2007


hi

there is a web application that i work on. one of the things this
application does is allow users to upload and view pdf files. the code
used to use anchors to show the pdf. something like this:
<a href="/cgi/show_pdf?uid=23" target="_new">your pdf</a>

i am moving to css and onclick handlers [in this case for a td]. the
onclick handler does this:
function() {
var url = '/cgi/show_pdf?uid=' + uid;
window.open( url, 'myStreamFile', popup_spec );
}

and ie7 will NOT display the pdf. firefox [pc & mac], safari work
fine. any suggestions?

-- 
\js  [ http://or8.net/~johns/ ]



More information about the Javascript mailing list