Opening PDF at specified page
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Opening PDF at specified page

From: Andrew Poulos <ap_prog@hotmail.com>
Date: Mon Apr 24 2006 - 12:32:37 CEST

I have some js that looks like this:

fOpenPDFInNewWindow = function(url,page) {
   var page = page || 1;
   newPDF = window.open(url+"#pagemode=bookmarks&page="+page,
"location=no,menubar=no;toolbar=no,scrollbars=no,width="+800+",height="+600+"\"");
}

and some HTML that looks like this:

<a href="#"
onclick="fOpenPDFInNewWindow('http://www.domain.com/test.pdf',5); return
false;">test link</a>

In my testing the PDF always opens at the specified page yet the client
insists that in her testing it only ever opens at page 1. I thought that
this would be pretty straightforward but I'm stumped as to why it should
behave differently. The client is using IE 6.

Andrew Poulos
Received on Mon May 1 05:17:46 2006