473,321 Members | 1,877 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

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
Jul 23 '05 #1
3 3493
Ivo
"sangeeth" wrote
Is it possible to fire an event using Javascript which is equivalent
to right-click --> show picture in IE.


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
http://javascript.internet.com/page-...mage-load.html
--
Ivo
Jul 23 '05 #2
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!
Jul 23 '05 #3
sangeeth kumar wrote:
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.


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 "ShowPicture()" 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 programmatically 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 <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq

Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: KathyB | last post by:
Hi, totally new to the div show/hide thing. I have some rows in a table. When I first load the page, I only want to see divs where the divID=ForView. When I load now, I see BOTH rows...even...
5
by: Shahar Golan | last post by:
In my site I show low quality pictures. When someone right clicks an image and selects 'Save Picture As...', I wish to let him save the high quality picture. I 10Q 4NE IDa.
6
by: Chris Thunell | last post by:
Right now I have a vb.net windows form project that does a whole bunch of things on the form.load event. The problem with this is that the user does not see the form until all the those things are...
2
by: cj | last post by:
How can I get the picture to show? They're .jpg files. For Each File As System.io.FileInfo In FileInfo Label1.Text = File.FullName PictureBox1.Image.FromFile(File.FullName)...
3
by: digimike | last post by:
I have a table with the name of a picture. Say "mike.jpg". Now the pictures are somwhere on a web server. Something like "www.thescripts.com/pictures/" So how can I display that picture in a form...
0
by: coryryder | last post by:
I'm just starting to learn VB and am using Visual Studio Pro. I created windows application that lets you open a picture file, display it in a picturebox, buttons to stretch, center, and normal...
5
by: hareldo | last post by:
hi, i wrote a code that open a picture and store it in a string. then its save the base_64 of this string in a jpeg file and then i can show this picture. but i want to show this picture without...
1
oranoos3000
by: oranoos3000 | last post by:
hi i make a shopping online that in home page i show my product picture's to user (information product's such as address location of picture and name and the other properties is kept in database my...
2
by: salman123 | last post by:
hi. i m trying to develop an employee data base in access. i would like to add a command button in the form which is when clicked it should open a window to browse through the folders and when a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.