 |
|
 |
|
Next: Ping: Tony....Ref Froogle
|
| Author |
Message |
External

Since: Oct 30, 2004 Posts: 3
|
(Msg. 1) Posted: Sat Oct 30, 2004 5:28 pm
Post subject: Links that download for sure Archived from groups: alt>www>webmaster, others (more info?)
|
|
|
I have had problems several times with links to files to download. In one
case I had a text file with different extension than txt, that, in case the
user has the associated application installed, it could be opened with that,
or otherwise downloaded. The problem was that in some clients, the browser
displayed the file, wich was not the intended purpose and was useless for
the visitors.
Another time I had the more common challenge of allowing users downloading
pdf files instead of viewing them in their browser in case they had the
plugin installed.
I know a common answer would be to zip the files, but some users... you
know, are not even zip self confident so to speak.
How can I make sure, with a client side solution, the link triggers a
download? I tried to look for a javascript function but I am not advanced on
it so I couldn't find a way.
Thanks >> Stay informed about: Links that download for sure |
|
| Back to top |
|
 |  |
External

Since: Aug 16, 2004 Posts: 8
|
(Msg. 2) Posted: Sat Oct 30, 2004 8:38 pm
Post subject: Re: Links that download for sure [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Sat, 30 Oct 2004 14:28:41 -0300, Simon Templar <poppoppop2.TakeThisOut@gmx.co.uk>
wrote:
[snip]
> How can I make sure, with a client side solution, the link triggers a
> download? I tried to look for a javascript function but I am not
> advanced on it so I couldn't find a way.
That's because it's not possible. See the (clj) FAQ
(<URL:http://jibbering.com/faq/>).
Mike
--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Links that download for sure |
|
| Back to top |
|
 |  |
External

Since: Jul 09, 2004 Posts: 446
|
(Msg. 3) Posted: Sun Oct 31, 2004 10:53 am
Post subject: Re: Links that download for sure [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
In alt.www.webmaster,comp.lang.javascript Simon Templar said:
> I have had problems several times with links to files to download.
you have no control over what happens when a link to a file is clicked
and you cant force anything. if a person wants to download the file
instead of opening it in the browser window or in some other application
they should know what to do (and you don't know what they want to do so
you shouldn't try to guess for them).
if your visitors do not know how to download a file without opening it
in the browser supply instructions for the common browsers and those
shown in your server stats.
> In one case I had a text file with different extension than txt,
idiot
> The problem was that in some clients, the browser displayed the file,
> wich was not the intended purpose and was useless for the visitors.
if you want a "save dialog" then change *your* preferences.
> Another time I had the more common challenge of allowing users downloading
> pdf files instead of viewing them in their browser
acrobat has the option to turn off browser integration. simple, you
don't need to do anything.
--
v o i c e s o f t h e l i t t l e<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Links that download for sure |
|
| Back to top |
|
 |  |
External

Since: Oct 31, 2004 Posts: 2
|
(Msg. 4) Posted: Sun Oct 31, 2004 4:43 pm
Post subject: Re: Links that download for sure [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
brucie wrote:
> In alt.www.webmaster,comp.lang.javascript Simon Templar said:
[snip]
>>In one case I had a text file with different extension than txt,
>
>
> idiot
>
[snip]
Really? So what extension would you give an ASCII file with comma
separated values? Seems to me that would be .csv (or .csf for some) and
if the user doesn't have .csv assigned to any particular application
(Windows will assign it to Excel by default IF you have Excel) it will
be displayed in the browser as text.
There are many more examples, please don't be so quick to judge, or so
rude in your language.
Zif.<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Links that download for sure |
|
| Back to top |
|
 |  |
External

Since: Oct 03, 2004 Posts: 111
|
(Msg. 5) Posted: Sun Oct 31, 2004 4:43 pm
Post subject: Re: Links that download for sure [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Zifud wrote:
> brucie wrote:
>> Simon Templar said:
>>
>>> In one case I had a text file with different extension than txt,
>>
>> idiot
>
> Really? So what extension would you give an ASCII file with comma
> separated values?
Brucie's point was that extensions are entirely a Windows thing. There is
no such thing as an extension on the web.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ <a style='text-decoration: underline;' href="http://tobyinkster.co.uk/contact" target="_blank">http://tobyinkster.co.uk/contact</a><!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Links that download for sure |
|
| Back to top |
|
 |  |
External

Since: Jul 09, 2004 Posts: 446
|
(Msg. 6) Posted: Sun Oct 31, 2004 6:09 pm
Post subject: Re: Links that download for sure [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
In alt.www.webmaster,comp.lang.javascript Zifud said:
>>>In one case I had a text file with different extension than txt,
>> idiot
> Really?
no i was wrong i should have said fucking idiot.
> So what extension would you give an ASCII file with comma
> separated values? Seems to me that would be .csv (or .csf for some) and
> if the user doesn't have .csv assigned to any particular application
> (Windows will assign it to Excel by default IF you have Excel) it will
> be displayed in the browser as text.
he can use any cute little 3 letters he wants to, even more or less or
even none at all if it gives him a thrill, it doesn't matter. what does
matter is the mime the server sends with the file to identify what it
is.
> There are many more examples, please don't be so quick to judge, or so
> rude in your language.
some people are just no fucking fun at all
--
v o i c e s o f t h e l i t t l e<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Links that download for sure |
|
| Back to top |
|
 |  |
External

Since: Oct 30, 2004 Posts: 3
|
(Msg. 7) Posted: Sun Oct 31, 2004 6:09 pm
Post subject: Re: Links that download for sure [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Well, this deserves a clarification due to the quick assesment this
gentleman, brucie, makes. The text file extension is pgn, an absolute
standard in chess games database for its interchangeability over the net.
The problem is chess players and amateurs are not always versant in zip
files, so they feel more comfrotable just by even directly opening the file
from the web server, and it would automatically fire up their chess database
application associated with this extension.
Enough
"brucie" <shit.RemoveThis@usenetshit.info> escribió en el mensaje
news:z1ryawpu5sop$.dlg@usenetshit.info...
> In alt.www.webmaster,comp.lang.javascript Zifud said:
>
> >>>In one case I had a text file with different extension than txt,
>
> >> idiot
>
> > Really?
>
> no i was wrong i should have said fucking idiot.
>
> > So what extension would you give an ASCII file with comma
> > separated values? Seems to me that would be .csv (or .csf for some) and
> > if the user doesn't have .csv assigned to any particular application
> > (Windows will assign it to Excel by default IF you have Excel) it will
> > be displayed in the browser as text.
>
> he can use any cute little 3 letters he wants to, even more or less or
> even none at all if it gives him a thrill, it doesn't matter. what does
> matter is the mime the server sends with the file to identify what it
> is.
>
> > There are many more examples, please don't be so quick to judge, or so
> > rude in your language.
>
> some people are just no fucking fun at all
>
> --
>
> v o i c e s o f t h e l i t t l e<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Links that download for sure |
|
| Back to top |
|
 |  |
External

Since: Oct 30, 2004 Posts: 3
|
(Msg. 8) Posted: Sun Oct 31, 2004 6:16 pm
Post subject: Re: Links that download for sure [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Well in the case of pgn chess standard files, as I pointed in another post
to this thread, even Linux and Mac applications look for this extensions.
The point is, that if the file is shown in a browser window, you can read
the notation and relevant data of the games, such as who played with white
and black pieces, tournament, year, etc., but can't replay the game, except
you open an application and enter the moves manually. The pgn files are
supported by dozens of chess applications, which when reading these files,
immediately allow the user to replay the games just by clicking a forward
arrow below a chess board, and switching from game to game without the
hassle of rearranging the pieces back to their starting position. In fact
this is its primary advantage! So, for chess related sites, it is very
important to make sure the user will be able to download the file
independently of the browser configuration, OS, etc. The suggestion to put
an advice on right clicking the link and choosing to save, would be an
intermediate solution. I wonder if there is any way, even server side in php
or asp to solve this and make everythinng friendlier to the user, or in
other words, more usable.
"Toby Inkster" <usenet200410.TakeThisOut@tobyinkster.co.uk> escribió en el mensaje
news:pan.2004.10.31.09.29.59.437398@tobyinkster.co.uk...
> Zifud wrote:
> > brucie wrote:
> >> Simon Templar said:
> >>
> >>> In one case I had a text file with different extension than txt,
> >>
> >> idiot
> >
> > Really? So what extension would you give an ASCII file with comma
> > separated values?
>
> Brucie's point was that extensions are entirely a Windows thing. There is
> no such thing as an extension on the web.
>
> --
> Toby A Inkster BSc (Hons) ARCS
<font color=purple> > Contact Me ~ <a style='text-decoration: underline;' href="http://tobyinkster.co.uk/contact</font" target="_blank">http://tobyinkster.co.uk/contact</font</a>>
><!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Links that download for sure |
|
| Back to top |
|
 |  |
External

Since: Oct 31, 2004 Posts: 1
|
(Msg. 9) Posted: Sun Oct 31, 2004 10:49 pm
Post subject: Re: Links that download for sure [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Simon Templar <poppoppop2.RemoveThis@gmx.co.uk> wrote:
> I wonder if there is any way, even server side in php
> or asp to solve this and make everythinng friendlier to the user, or in
> other words, more usable.
I think you should use 'application/x-chess-pgn pgn'
in the headers of the page sent by php...
if client browser could read this type mime (in its preferences) it
would propose good render page.
--
@@@@@
E -00 comme on est very beaux dis !
' `) /
|\_ =="<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Links that download for sure |
|
| Back to top |
|
 |  |
External

Since: Oct 31, 2004 Posts: 2
|
(Msg. 10) Posted: Mon Nov 01, 2004 12:41 am
Post subject: Re: Links that download for sure [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Toby Inkster wrote:
[snip]
> Brucie's point was that extensions are entirely a Windows thing. There is
> no such thing as an extension on the web.
>
Then perhaps Brucie could have said as much, in similar language.
Zif.<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Links that download for sure |
|
| Back to top |
|
 |  |
External

Since: Oct 03, 2004 Posts: 111
|
(Msg. 11) Posted: Mon Nov 01, 2004 12:41 am
Post subject: Re: Links that download for sure [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Zifud wrote:
> Then perhaps Brucie could have said as much
He did in his own way.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ <a style='text-decoration: underline;' href="http://tobyinkster.co.uk/contact" target="_blank">http://tobyinkster.co.uk/contact</a>
Now Playing ~ ./oasis/the_masterplan.ogg<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Links that download for sure |
|
| Back to top |
|
 |  |
External

Since: Nov 01, 2004 Posts: 1
|
(Msg. 12) Posted: Mon Nov 01, 2004 6:42 am
Post subject: Re: Links that download for sure [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Toby Inkster wrote:
[...]
> Brucie's point was that extensions are entirely a Windows thing. There is
> no such thing as an extension on the web.
>
Then Brucie is wrong. Extensions are used by the web server to assign
the MIME type and (when not opened via a browser) by the OS of the
system the file is downloaded to to assign the application used to open
the file.
Windows, Linux and Mac OS X (and in certain circumstances, Mac OS 9) all
use the file extension to associate a file with an application to a
greater or lesser extent.
To trivalise their importance is misleading.
Fred.<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Links that download for sure |
|
| Back to top |
|
 |  |
External

Since: Nov 01, 2004 Posts: 82
|
(Msg. 13) Posted: Mon Nov 01, 2004 8:52 am
Post subject: Re: Links that download for sure [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Fred Oz wrote:
> Extensions are used by the web server to assign the MIME type
*Some* web servers *may* look at the last part of the file name to infer
a MIME type under *some* configurations, yes.
But the method used by the web server to determine the MIME type is not
relevent to the browser. The browser is simply sent the MIME type, a few
other headers and the content.
> Windows, Linux and Mac OS X (and in certain circumstances, Mac OS 9) all
> use the file extension to associate a file with an application
My GNOME desktop uses, IIRC, the MIME-magic package to do this, which
actually looks at the first few bytes of the file for a magic string. e.g.
all PNG files contain the bytes 89:50:4E:47.
But I'm not entirely sure how the method of opening local files by the
operating system is on topic in either of these groups.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ <a style='text-decoration: underline;' href="http://tobyinkster.co.uk/contact" target="_blank">http://tobyinkster.co.uk/contact</a><!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Links that download for sure |
|
| Back to top |
|
 |  |
External

Since: Jul 09, 2004 Posts: 446
|
(Msg. 14) Posted: Mon Nov 01, 2004 9:52 am
Post subject: Re: Links that download for sure [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
In alt.www.webmaster,comp.lang.javascript Simon Templar said:
> Well, this deserves a clarification due to the quick assesment this
> gentleman, brucie, makes.
i'm not a gentleman and please don't toppost, it upsets the little
voices.
How do I quote correctly in Usenet? - Quoting and Answering
<a style='text-decoration: underline;' href="http://www.netmeister.org/news/learn2quote2.html" target="_blank">http://www.netmeister.org/news/learn2quote2.html</a>
The advantages of Usenet's quoting conventions
<a style='text-decoration: underline;' href="http://homepage.ntlworld.com/g.mccaughan/g/remarks/uquote.html" target="_blank">http://homepage.ntlworld.com/g.mccaughan/g/remarks/uquote.html</a>
Why is Bottom-posting better than Top-posting
<a style='text-decoration: underline;' href="http://www.caliburn.nl/topposting.html" target="_blank">http://www.caliburn.nl/topposting.html</a>
Rules for posting to Usenet
<a style='text-decoration: underline;' href="http://www.faqs.org/faqs/usenet/posting-rules/part1/" target="_blank">http://www.faqs.org/faqs/usenet/posting-rules/part1/</a>
Bottom vs. top posting and quotation style on Usenet
<a style='text-decoration: underline;' href="http://www.cs.tut.fi/~jkorpela/usenet/brox.html" target="_blank">http://www.cs.tut.fi/~jkorpela/usenet/brox.html</a>
What do you mean "my reply is upside-down" ?
<a style='text-decoration: underline;' href="http://www.i-hate-computers.demon.co.uk/quote.html" target="_blank">http://www.i-hate-computers.demon.co.uk/quote.html</a>
> The text file extension is pgn, an absolute standard in chess games
> database for its interchangeability over the net.
and it appears the correct [non registered] mime is
application/x-chess-pgn
> The problem is chess players and amateurs are not always versant in zip
> files,
its a myth that .zip files always open a download dialogue. its entirely
up to the persons configuration what happens with the files they
download.
> and it would automatically fire up their chess database
> application associated with this extension.
your job is to correctly identify the file, nothing more. stop
attempting to control other peoples computers, its not nice and pisses
people off.
--
t h e o f l i t t l e v o i c e s<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Links that download for sure |
|
| Back to top |
|
 |  |
External

Since: Nov 01, 2004 Posts: 1
|
(Msg. 15) Posted: Mon Nov 01, 2004 2:30 pm
Post subject: Re: Links that download for sure [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Simon Templar" <poppoppop2 DeleteThis @gmx.co.uk> wrote in message news:<2ui1abF29upr2U1 DeleteThis @uni-berlin.de>...
> I have had problems several times with links to files to download. In one
> case I had a text file with different extension than txt, that, in case the
> user has the associated application installed, it could be opened with that,
> or otherwise downloaded. The problem was that in some clients, the browser
> displayed the file, wich was not the intended purpose and was useless for
> the visitors.
>
> Another time I had the more common challenge of allowing users downloading
> pdf files instead of viewing them in their browser in case they had the
> plugin installed.
This is another thing controlled by the client web browser.
>
> I know a common answer would be to zip the files, but some users... you
> know, are not even zip self confident so to speak.
>
> How can I make sure, with a client side solution, the link triggers a
> download? I tried to look for a javascript function but I am not advanced on
> it so I couldn't find a way.
This is controlled by the web browser. What a web broswers does is
based on the mime type. Some web browsers let you configure what the
browser does when a file is downloaded. Of course, IE doesn't on
windows.
I do not think there is a general answer. I think you have to go with
a compromise.
Is this file a text file? If so, use the extension .txt. Have the
user rename the file on the client computer. Or use zip files, and go
with the user having to deal with them.
You have stumbled across a window problem area. Other other operating
systems let you configure what happens on the download a file and
include zip file decompression programs as part of the OS.
Robert<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: Links that download for sure |
|
| Back to top |
|
 |  |
| Related Topics: | Hot links - Hello. I found a lot of hot-links in the form, for example: <img src='http://www.my-works.org/images/faces/wave1.gif' /> that points directly on the images on my site. Actually I deny this type of links by using RewriteRule Apache meccanism. I w...
Avoiding hot links - How can I make sure that no one can hot-link photos, etc. from my site from another site? Is there a script that I can use? <font color=brown> ; ; ; Thanks,</font> <font color=brown> ;&nbs...
Links colours - Is there any way to change the colours on links further down the document to alternate colours? I would like to have some of my links as one colour, and others to be an alternate colour, but I am not able to figure out how to do this...I need help! ..
Links Blogging.. - I maintain a blog, updated daily, which features random sites from a wide variety of categories. It is regularly read by 100's of folks worldwide, stop by or reply to this if you'd be intersted in me putting your site on. I generally don't feature..
trade links - Would anyone be willing to trade links with my website? http://worldseries.theSpear.net link with text "World Series" and then contact me either by replying or through email (ws@theSpear.net) as soon as possible. Will add you to Links Page. |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|