Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html:link

 
MInu
Ranch Hand
Posts: 517
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am facing a problem.I have a <html:link > likr this
<html:link action="anatomyMasterBeginAction?myActionIs=view" paramId="primaryKey" paramName="records" paramProperty="primaryKey"><img src="../../images_emr/view.gif" width="21" height="19" border="0"></html:link>

This will perform a delete operation.Before doing delete operation i need to get a confirmation.So i have to populate a confirmation box to confirm the operation from user....
how can i do this...........

please help me........
[ August 18, 2006: Message edited by: Vinod Ennes ]
 
MInu
Ranch Hand
Posts: 517
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please help me
 
Shilpa Tendulkar
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this:
<html: link href="action" parmaId="id" paramName="name" paramProperty="someprop" on click="myfun();"><img .../></html: link>
<script>
function myfun(){
if(confirm("Are you sure you want to delete?")){
return true;
}else{
return false;
}
}
</script>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic