Something like this works well:
<%
if ( perm.mayDelete() )
{
%>
<a href="javascript: if( confirm( 'Do you want to delete this project?' )
)
location.href='../projects/project_delete.jsp?<%= baseQuery %>'">
<img border=0 height=17 hspace=10 src="../images/btn_delete.gif"
width=48></a>
<%
}
%>
-----Original Message-----
From: Rupali Bains Goswami [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 18, 2000 2:16 PM
To: [EMAIL PROTECTED]
Subject: Popup Windows
In my jsp files, the user can update or delete some information. If they
select delete I need to popup a confirmation window just to be sure that
they want to delete the information and if they say yes i go to another jsp
page, delete the row from the database and refresh the list
Can someone tell me how i can do this confirmation dialog??
Thanks
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets