Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    Senior Coder
    Join Date
    Nov 2010
    Posts
    1,383
    Thanks
    264
    Thanked 32 Times in 31 Posts

    Opening an image link only in Firefox or Chrome

    Since IE has decided to prevent opening images up via the url and only lets you download them now, i wanted to find out the following.

    Situation: I have a shout box that allows you to post image links. When a user clicks on the link, in IE it gives the download box option, in Firefox and Chrome it lets you see the image, which is what i want.

    I have instructions that if viewing images just open the site up in FF. But this is making it difficult for users.

    Question:

    Is there a way when someone clicks that link and they are in IE, it will open up that link in Firefox or Chrome rather than in IE?

    Thanks.

    I was looking at something like this but not sure..

    Code:
    MyObject = new ActiveXObject("WScript.Shell")
        function RunFirefox() {
            MyObject.Run("firefox http://myimageurl.com");
        }
        RunFirefox();
    Last edited by durangod; 03-29-2013 at 05:06 AM.

  • #2
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,373
    Thanks
    11
    Thanked 592 Times in 572 Posts
    Quote Originally Posted by durangod View Post
    Since IE has decided to prevent opening images up via the url and only lets you download them now, i wanted to find out the following.

    um, my ie lets me view images just fine. perhaps the particular image you want to show has a content-disposition header that forces the browser to download from the url bar.

    at any rate, simply use an <img> tag pr modal dialog to show the image instead of barebacking the image in a new tab.
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/9/03) IE7:0.1, IE8:4.6, IE11:9.1, IE9:3.1, IE10:3.0, FF:17.2, CH:46, SF:11.4, NON-MOUSE:38%

  • Users who have thanked rnd me for this post:

    durangod (03-29-2013)

  • #3
    Senior Coder
    Join Date
    Nov 2010
    Posts
    1,383
    Thanks
    264
    Thanked 32 Times in 31 Posts
    Thanks, i didnt think about the fact that i already use lightbox in another part of the site, i could just use that to display them.

    Thanks for the reply

  • #4
    Banned
    Join Date
    Mar 2013
    Posts
    139
    Thanks
    0
    Thanked 9 Times in 9 Posts
    Quote Originally Posted by durangod View Post
    Is there a way when someone clicks that link and they are in IE, it will open up that link in Firefox or Chrome rather than in IE?
    Surely common sense tells you that the answer is a big NO!!.

    Most users will have only one browser installed on their device. They can then optionally install other browsers. You can't force users to install browsers they wouldn't normally want to use.

    The user and not the website developer has the only and final say in which browser(s) they want to use and that is the way it should be. It is up to the website developer to code their web site so that it works as much as possible in all browsers they want to support. Therefore you need to understand the features and any limitations of the browsers you support. A bad tradesman will always blame his tools

  • #5
    Senior Coder
    Join Date
    Nov 2010
    Posts
    1,383
    Thanks
    264
    Thanked 32 Times in 31 Posts
    Quote Originally Posted by knightCoder View Post
    Surely common sense tells you that the answer is a big NO!!.

    Most users will have only one browser installed on their device. They can then optionally install other browsers. You can't force users to install browsers they wouldn't normally want to use.

    The user and not the website developer has the only and final say in which browser(s) they want to use and that is the way it should be. It is up to the website developer to code their web site so that it works as much as possible in all browsers they want to support. Therefore you need to understand the features and any limitations of the browsers you support. A bad tradesman will always blame his tools


    Surely common sense tells you that i already know this. And your reply also offers no solution or attempt at such in any way.. But thanks.

  • #6
    Banned
    Join Date
    Mar 2013
    Posts
    139
    Thanks
    0
    Thanked 9 Times in 9 Posts
    Quote Originally Posted by durangod View Post
    Surely common sense tells you that i already know this..
    Then I don't understand why you asked

    Is there a way when someone clicks that link and they are in IE, it will open up that link in Firefox or Chrome rather than in IE?
    if you new the answer is NO, as you claim.

    Quote Originally Posted by durangod View Post
    And your reply also offers no solution or attempt at such in any way.. But thanks.
    That's because I said the answer to your question is that it can't be done .

    There is no way I would let any web page access my pc to start another browser for obvious security reasons.

  • #7
    Senior Coder
    Join Date
    Nov 2010
    Posts
    1,383
    Thanks
    264
    Thanked 32 Times in 31 Posts
    You are so wrong on some of your comments but honestly i see no need to go round and round.. Hardly anyone anymore has only one browser. But anyway you see things your way and i ask for a good reason. But i got my answer from rnd so im happy. Happy trails..

  • #8
    Banned
    Join Date
    Mar 2013
    Posts
    139
    Thanks
    0
    Thanked 9 Times in 9 Posts
    Quote Originally Posted by durangod View Post
    You are so wrong on some of your comments but honestly i see no need to go round and round.. Hardly anyone anymore has only one browser.
    It's easy to claim someone is wrong and not post anything that shows they might be wrong. Anyone can do that . You haven't posted anything at all that shows what I said is not correct.

    You even agreed with my answer when you said

    Surely common sense tells you that i already know this.
    With
    Hardly anyone anymore has only one browser.
    if you're talking about developers then yes I agree, If you're talking about plain mums and dads end users then I disagree.

  • #9
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,373
    Thanks
    11
    Thanked 592 Times in 572 Posts
    Quote Originally Posted by knightCoder View Post
    It's easy to claim someone is wrong and not post anything that shows they might be wrong.
    what does that have to do with the question at hand? why the interrogation focused on a confession? human beings make mistakes, i'm sure you've made several, including the mean-spirited multi-quoting going on here. it's not needed or helpful, so please, knock it off.

    It's nice to be right, but it's more right to be nice.

    your answer is an over-reaction at best. Indeed, it is possible to open an browser (or any application for that matter) from another, as long as the user co-operates. all you need to do is trigger a download of a mimetype that has a user-chosen custom open/save action remembered.
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/9/03) IE7:0.1, IE8:4.6, IE11:9.1, IE9:3.1, IE10:3.0, FF:17.2, CH:46, SF:11.4, NON-MOUSE:38%


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •