Imagemap with Modal popup, shows modal popup on un mapped areas

Posted by Xperiment under ASP.NET on 12/16/2012 | Points: 10 | Views : 4155 | Status : [Member] | Replies : 4
Hi,
I have used imagemap with ajax modal pop up extender. I want to display modal pop up on cerntain region in image. I successfully added polygon cordinates using hotspot attribute of imagemap. I can also display modal popup (some buttons based on panel) when I click on mapped polygon.

However problem is, modal popup is getting displayed even when I click anywhere on image. How can I stop modal popup to be disable on clicking on other image area.




Responses

Posted by: Ankitsrist on: 12/18/2012 [Member] Starter | Points: 25

Up
0
Down
u can open modal popup by java script also
f
unction ValidateAndOpen(){

if(Validate()){
var modalDialog = $find("ModalPopupExtender1");
// get reference to modal popup using the AJAX api $find() function
if (modalDialog != null) {
modalDialog.show();
}
}
return false;
}


mark this if it helps u



Xperiment, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ankitsrist on: 12/18/2012 [Member] Starter | Points: 25

Up
0
Down
and You must set ClientIDMode="Static" on ModalPopupExtender and set OnClientClick="return ValidateAndOpen();"

mark this if it helps u

Xperiment, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ankitsrist on: 12/18/2012 [Member] Starter | Points: 25

Up
0
Down
but even it is gud to display modal popup on displaying at any part of image....it could not be a problem

Xperiment, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ankitsrist on: 12/18/2012 [Member] Starter | Points: 25

Up
0
Down
mark this if it helps u

Xperiment, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response