Refreshing image src and usemap

Discussion in 'ASP .Net' started by Jeronimo Bertran, Oct 7, 2004.

  1. 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>

    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...


    Jeronimo Bertran, Oct 7, 2004
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.