Re: 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

Re: Opening PDF at specified page

From: Andrew Poulos <ap_prog@hotmail.com>
Date: Tue Apr 25 2006 - 12:01:20 CEST

VK wrote:
> Andrew Poulos wrote:
>> I wonder if it's some new security feature of IE/Windows?
>
> Yes, it is. Windows XP SP2 activates very harsh popup blocker by
> default. It is strange that your solution is still working for anyone:
> either your users are not Windows ones, or the majority is using
> outdated Windows platforms (98, 2000, ME).
>
> If SP2 is installed, userAgent string contains "SV1", and it means 70%
> chance that you cannot open new windows by script (highly generous 30%
> left for customized settings).
>
> I believe several months ago in this very group with a similar problem
> I suggested you to start migration on popupless solution asap. You
> ignored my advise as I can tell. :-(

No, I think you've misunderstood my question. A URL that points to a PDF
*is* opened with JavaScript when a user clicks a link. Popup blocking is
not the issue here. (Pointed Ears showed me how to make it less
"error-prone" and how to degrade it gracefully for users with JavaScript
turned off.)

The problem is that the PDF always opens on page 1 irrespective of the
query string contents. The Adobe site says that #page=5 should open the
PDF at page 5 (it does with FF and IE 6 on my computer) but it opens at
page 1 with IE 6 on other computers.

Even if I put the URL plus query string into the A's href it still opens
at page 1. The display URL in the address bar is correct but the page is
not.

My lament about security features was about some new(?) one added to PDF
display.

Andrew Poulos
Received on Mon May 1 05:19:57 2006