Right-Click --> Show Picture event

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sangeeth

    #1

    Right-Click --> Show Picture event

    Hi all,

    Is it possible to fire an event using Javascript which is equivalent
    to right-click --> show picture in IE.
    Please help me..

    thanks
    sangeeth
  • Ivo

    #2
    Re: Right-Click --> Show Picture event

    "sangeeth" wrote[color=blue]
    > Is it possible to fire an event using Javascript which is equivalent
    > to right-click --> show picture in IE.[/color]

    What exactly are you trying to do? The 'show picture' option is available in
    the contextmenu when an image has failed to load for some reason. Perhaps
    set some boolean variable to true in the onerror attribute of the image, and
    check that variable when a right-click on the image occurs. Yes, there is an
    onerror event handler for the window object, and another one especially for
    images.
    For a silly example, see

    --
    Ivo


    Comment

    • sangeeth kumar

      #3
      Re: Right-Click --> Show Picture event

      I wish to programatically fire a "right-click-->Show Picture" event.

      I need to do this because.. I have a condition that I should not
      reload/refresh the document.

      thanks
      sangeeth



      *** Sent via Developersdex http://www.developersdex.com ***
      Don't just participate in USENET...get rewarded for it!

      Comment

      • Grant Wagner

        #4
        Re: Right-Click --> Show Picture event

        sangeeth kumar wrote:
        [color=blue]
        > I wish to programatically fire a "right-click-->Show Picture" event.
        >
        > I need to do this because.. I have a condition that I should not
        > reload/refresh the document.[/color]

        You can't. If the user chooses to configure the user agent to not
        display the SRC of <img> tags, you have no control over that. If you
        could override the user's choice, then you could simple loop through all
        the <img> tags on a page and fire the "ShowPictur e()" method on each
        one, making the user's ability to configure such a setting pointless.

        What are you doing that you feel you need to programmaticall y fire the
        Show Picture functionality (I'm guessing you're switching SRC values,
        and since the new SRC image is not cached, it's not displaying
        immediately?)?

        --
        Grant Wagner <gwagner@agrico reunited.com>
        comp.lang.javas cript FAQ - http://jibbering.com/faq

        Comment

        Working...