Re: [WSG] introducing a prompt to download or open a pdf

2007-10-18 Thread willdonovan
Reply Chris, Macs do have a right click (right-click being a geenral Microsoft / PC term) Holding down control or the new mouse Apple releases with a right click option. William Chris Price wrote: I would use the file name (or description) as a hyperlink. Its good to have the file size so

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-17 Thread E Michael Brandt
By including an icon (and a title attribute) that indicates that the pdf will open in a new window, the knowledgeable user can easily right click if she wishes to override and take some other action. That's how divaPOP works. This seems to me to be the best of both worlds: novices will see th

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-17 Thread Michael MD
My pet hate is people forcing pdfs to open in browser windows with javascript! A plain old ordinary link at least lets you right click and download - some of us hate having the browser locked up for ages locked up waiting for the slow pdf plugin to load. I think anything that takes more than a

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-17 Thread Chris Knowles
Nick Fitzsimons wrote: > On 17 Oct 2007, at 13:47, Chris Knowles wrote: > >> Nick Fitzsimons wrote: >>> Word boundaries aren't right either; for exmple, they will match a >>> hyphen, so matching on some-thing will match some-thing-else. As per the >>> HTML spec, class names are space-separated, so

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-17 Thread Nick Fitzsimons
On 17 Oct 2007, at 13:47, Chris Knowles wrote: Nick Fitzsimons wrote: Word boundaries aren't right either; for exmple, they will match a hyphen, so matching on some-thing will match some-thing-else. As per the HTML spec, class names are space-separated, so you need to match on spaces and the

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-17 Thread Chris Knowles
Nick Fitzsimons wrote: > Word boundaries aren't right either; for exmple, they will match a > hyphen, so matching on some-thing will match some-thing-else. As per the > HTML spec, class names are space-separated, so you need to match on > spaces and the beginning or end of the string. > of course

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-17 Thread Nick Fitzsimons
On 17 Oct 2007, at 04:50, Chris Knowles wrote: Kit Grose wrote: Just a note: Your function doesn't currently use the RegExp function for anything useful (you might as well use indexOf). RegExp is the right way to do it, though, so you can enforce word boundaries to match complete classNames on

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-16 Thread Chris Knowles
Kit Grose wrote: > Just a note: > Your function doesn't currently use the RegExp function for anything > useful (you might as well use indexOf). RegExp is the right way to do > it, though, so you can enforce word boundaries to match complete > classNames only (if I want all a.pop to be new window

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-16 Thread Kit Grose
On 17/10/2007, at 1:05 PM, Chris Knowles wrote: heres a generic javascript function I wrote to open links in a new window based on class name. It's only a partial solution to the pdf issue but maybe someone will find it useful anyway. just call it on dom load or window load with the class name

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-16 Thread Chris Knowles
Paul Minty wrote: > I'd like to see a microformat for this, and an external javascript, so > that people who author these links without the aid of server side > scripting can develop this user experience easily. Anyone seen anything > like that? > > Cheers > Paul > heres a generic javascript f

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-16 Thread Christian Snodgrass
I haven't specifically used code like this, but I do use a dynamic page system (a more advanced version of the '?p=mypage' system commonly seen). To avoid letting people include stuff they should be able to, the page that processes all of this basically has an array where I set which pages it's

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-16 Thread Chris Knowles
John Horner wrote: > Maybe it's just me, but this: > > -- > > $type = $_GET['type']; > $fileName = $_GET['filename'] . "." . $type; > > $mimeType = "application/$type"; > if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 5') or > strpos($_SERVER['HTTP_USER_AGENT'], 'Opera 7')) $m

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-16 Thread E Michael Brandt
> that people who author these links without the aid of server side > scripting can develop this user experience easily. Anyone seen anything > like that? As it happens I offer an inexpensive script, divaPOP (both as a Dreamweaver Extension, and a Standalone script for everyone else) that does

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-16 Thread Chris Knowles
John Horner wrote: > Maybe it's just me, but this: > > where the link would be download.php?filename=mypdf&type=pdf > looks terribly insecure to me -- I'm allowed to put whatever I want into > the URL until I find something interesting? > >I think I'd start with > > download.php?filename=../htpa

RE: [WSG] introducing a prompt to download or open a pdf

2007-10-16 Thread John Horner
Maybe it's just me, but this: -- $type = $_GET['type']; $fileName = $_GET['filename'] . "." . $type; $mimeType = "application/$type"; if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 5') or strpos($_SERVER['HTTP_USER_AGENT'], 'Opera 7')) $mimeType = 'application/x-download';

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-16 Thread Chris Price
Tee G. Peng wrote: Mac has right click. It's just Steve Jobs made it so difficult with his Apple mouse (a piece of pricey junk). If you use Apple mouse, use the combination of "control" on keyboard + click on mouse, this will open up the right click window for options. I know its not strictly c

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-16 Thread Tee G. Peng
On Oct 16, 2007, at 12:39 AM, Chris Price wrote: BTW Macs don't have a right click. Hi Chris, Mac has right click. It's just Steve Jobs made it so difficult with his Apple mouse (a piece of pricey junk). If you use Apple mouse, use the combination of "control" on keyboard + click on

RE: [WSG] introducing a prompt to download or open a pdf

2007-10-16 Thread Paul Minty
fstudio.com.au -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Simon Moss Sent: Tuesday, 16 October 2007 11:46 PM To: wsg@webstandardsgroup.org Subject: Re: [WSG] introducing a prompt to download or open a pdf They certainly don't make it

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-16 Thread Simon Moss
They certainly don't make it easy to find - http://www.adobe.com/misc/linking.html#pdficon Someone suggested using a PDF icon. Is this something you can get from adobe? Simon *** List Guidelines: http://webstandardsgroup.org/ma

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-16 Thread Simon Cockayne
Hi, Someone suggested using a PDF icon. Is this something you can get from adobe? Simon *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EM

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-16 Thread dwain
On 10/16/07, Nick Fitzsimons <[EMAIL PROTECTED]> wrote: > On 16 Oct 2007, at 10:43, dwain wrote: > > > On 10/16/07, Nick Fitzsimons <[EMAIL PROTECTED]> wrote: > >> On 16 Oct 2007, at 08:40, dwain wrote: > >> > >>> i did not put the pdf icon (don't know where to get one) > >> > >>

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-16 Thread Nick Fitzsimons
On 16 Oct 2007, at 10:43, dwain wrote: On 10/16/07, Nick Fitzsimons <[EMAIL PROTECTED]> wrote: On 16 Oct 2007, at 08:40, dwain wrote: i did not put the pdf icon (don't know where to get one) thanks, i found one. where do i put this icon before or after the link?

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-16 Thread dwain
On 10/16/07, Nick Fitzsimons <[EMAIL PROTECTED]> wrote: > On 16 Oct 2007, at 08:40, dwain wrote: > > > i did not put the pdf icon (don't know where to get one) > > thanks, i found one. where do i put this icon before or after the link? dwain -- dwain alford "The artist m

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-16 Thread dwain
On 10/16/07, Nick Fitzsimons <[EMAIL PROTECTED]> wrote: > On 16 Oct 2007, at 08:40, dwain wrote: > > > i did not put the pdf icon (don't know where to get one) > > then where? i've looked under downloads and support. i would think that they would have a place "special" ju

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-16 Thread Nick Fitzsimons
On 16 Oct 2007, at 08:40, dwain wrote: i did not put the pdf icon (don't know where to get one) *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-16 Thread Chris Price
dwain wrote: On 10/16/07, Kit Grose <[EMAIL PROTECTED]> wrote: I'd think (as a user) if you use the terminology 'download' for the link, the PDF should be sent with a force-download Content-type header if possible (so it doesn't try to view it). how would you code this force download?

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-16 Thread Chris Knowles
Rather than open a pdf in a browser window albeit the same window or a popup, I prefer that a pdf is either saved to the filesystem or opened by a program external to the browser like Acrobat reader. This behaviour depends on what headers the webserver responds with. In php you can serve a file wi

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-16 Thread dwain
On 10/16/07, Kit Grose <[EMAIL PROTECTED]> wrote: > I'd think (as a user) if you use the terminology 'download' for the > link, the PDF should be sent with a force-download Content-type > header if possible (so it doesn't try to view it). how would you code this force download? dwain -- dwain al

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-16 Thread dwain
On 10/16/07, Paul Minty <[EMAIL PROTECTED]> wrote: > I'd recommend displaying with a PDF icon, the text 'PDF' and a file size > (in Kb or Mb). I suggest setting the target to a new window, then the > user can righ click to save. here's the address where the pdf links are. i did not put the pdf ic

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-16 Thread Chris Price
I would use the file name (or description) as a hyperlink. Its good to have the file size so the visitor knows what they're dealing with. I link to a php page for pdf downloads. The header of the page ensures that the file is served as a pdf not html which means that an option is presented ask

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-16 Thread Kit Grose
I like your suggestion of including the file size, but just as an aside: Kb stands for Kilobit, not Kilobyte (which you probably mean). Both letters should be in caps to mean Kilobytes/Megabytes. I'd think (as a user) if you use the terminology 'download' for the link, the PDF should be sen

RE: [WSG] introducing a prompt to download or open a pdf

2007-10-16 Thread Frank Palinkas
ssage- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Minty Sent: Tuesday, 16 October, 2007 8:53 AM To: wsg@webstandardsgroup.org Subject: RE: [WSG] introducing a prompt to download or open a pdf > Sent: Tuesday, 16 October 2007 4:16 PM > To: web standards

RE: [WSG] introducing a prompt to download or open a pdf

2007-10-15 Thread Paul Minty
> Sent: Tuesday, 16 October 2007 4:16 PM > To: web standards group > Subject: [WSG] introducing a prompt to download or open a pdf > > i know that this has come up before, but would someone point me to best practices to introduce a > > > prompt to open or download a pdf or any file for that matte

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-15 Thread Jermayn Parker
debatable about opening in new windows but its best to use a pdf icon with size next to the link. On 10/16/07, dwain <[EMAIL PROTECTED]> wrote: > > i know that this has come up before, but would someone point me to > best practices to introduce a prompt to open or download a pdf or any > file fo