Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Fern Sanchez   on Aug 03 In Asp.net Category.

  
Question Answered By: Bathilda Schmidt   on Aug 03

I got this thing cooking the way I wanted  to,
but I have 1 small problem. I click  on the ImageButton
which opens a new window and reads the x, y coords
from Session vars then invokes the Handler to get me
the detail image. Great, works fine. Image returns and
loads in an Image control in the new window, 3 seconds
later the new window closes. Now, if I want to click the
ImageButton again, the window opens and I see the
image I saw last time. If I click the same spot a second
time I then get what I wanted. I wonder if the browser
is caching the image, because each time I ask for this
image it has the same file name.

I'm thinking about changing it so that when I click on
the ImageButton it goes and gets the new image and I save
the original image on the client-side. Then I'll show the new
image in the ImageButton and after 3 seconds replace  this
new image with the original by using a 3 second setTimeout
activated by a click event  attribute added to the ImageButton.

I don't think my Handler code could be duplicated with
Javascript. Check the attachment.

Share: 

 

This Question has 5 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Causing timed form Post Or get search suggestion and latest updates.


Tagged: