Refreshing image src and usemap

  • Thread starter Jeronimo Bertran
  • Start date
J

Jeronimo Bertran

Hi,

I have a page that includes an image that uses an image map. When the
user clicks on a button, the image needs to be refreshed and the map needs
to be updated without refreshing the entire form.

<img id="mapimage" src="renderimage.aspx?param=1" usemap="#mappoints">
<map name ="mappoints>
<area......>
</map>

when the user clicks a button, I am calling the following script code:

var url = "renderimage.aspx?param=" + SelectedParam;
document.MyForm.mapimage.src = url;


Now, when the rederimage.aspx page renders the image based on the param, it
determines the areas for the map. I am currently saving the area
information on the Session state when the image is rendered.... however I
can't seem to be able to update the map using that information.

I know that area elements can be added or removed from the areas collection
in a map... but I don't understand how I can use the information obtained
from refreshing the renderimage.aspx...

Thanks!!

Jeronimo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,731
Messages
2,569,432
Members
44,832
Latest member
GlennSmall

Latest Threads

Top