468,170 Members | 1,857 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,170 developers. It's quick & easy.

How to lauch an image editor when click on an image link ?

Hi,
Does anybody knows how to make the browser lauch an external image
editor (i.e. Photoshop) when the user clicks on a link like this :
<a href= "http://localhost/images/200411081456170.Nenuphars.jpg">Image</a>
The same application can be launched for any image link.
Thank you.

Wlad
Jul 23 '05 #1
2 1666
In article <12**************************@posting.google.com >,
wl********@astapronto.fr enlightened us with...
Hi,
Does anybody knows how to make the browser lauch an external image
editor (i.e. Photoshop) when the user clicks on a link like this :
<a href= "http://localhost/images/200411081456170.Nenuphars.jpg">Image</a>
The same application can be launched for any image link.
Thank you.


It's up to the user to decide to launch a program to open images. You can't
control that. It's a setting in the registry for Windows. I have no clue what
it is for Mac, Unix, Linux, etc.
--
--
~kaeli~
Is it possible to be totally partial?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #2
Wlad wrote:
Hi,
Does anybody knows how to make the browser lauch an external image
editor (i.e. Photoshop) when the user clicks on a link like this :
<a href= "http://localhost/images/200411081456170.Nenuphars.jpg">Image</a>


You can't because you have no idea what software a user has installed,
and even if you did, you have no right to select which one the user
wants, nor whether they actually want to edit the image. Just ask the
user to save the image and launch their own editor.

Secondly, that URI is useless for anyone but you because it's referring
to the user's local machine. If you were to publish a page on the web
containing a URI like that, the image would only show if the user had a
web server set up, and had an image with that exact file name and path.
The chances of that are slim, and I suspect that even if there were,
the browser would also have security features to prevent web sites
acessing the localhost like that, so that an author can't arbitarily
run/access a users files.

--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://SpreadFirefox.com/ Igniting the Web
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

14 posts views Thread by D. Alvarado | last post: by
3 posts views Thread by WJ | last post: by
7 posts views Thread by Dennis | last post: by
5 posts views Thread by aiki727 via DotNetMonster.com | last post: by
9 posts views Thread by Rajesh | last post: by
1 post views Thread by gcdp | last post: by
reply views Thread by gcreed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.