You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ML...@abusinessware.com on 2007/08/21 09:50:36 UTC
RE how to use confirmdialog box
<s:hidden name="bucket"/>
<s:a href="javascript:delete('${Bucket}');">Delete</a>
<script>
function delete(id) {
if(confirm('sure ?')) {
document.forms[0].bucket.value = id;
document.forms[0].action =
deletebucketaction.action;
document.forms[0].submit();
} else {
document.forms[0].bucket.value = id;
document.forms[0].action =
browsebucketaction.action;
document.forms[0].submit();
}
}
</script>
Sawan <sa...@gmail.com>
21/08/2007 09:41
Veuillez répondre à
"Struts Users Mailing List" <us...@struts.apache.org>
A
user@struts.apache.org
cc
Objet
how to use confirmdialog box
hello,
i want to use confirm dialog box in my application, but i faces some
problem.
so please let me know how i can do my work
" <s:url action=
<s:param name="Bucket" value="%{Bucket}" />
</s:url>" onclick="confirm('sure to delete')" >Delete "
i have done this , it will show confimdialog box and if i click on ok or
cancel then deletebucket action is called.
but my need is that if i click on OK then it have to call
deletebucketaction & when i click on cancel then
it have to call browsebucketaction.
--
View this message in context:
http://www.nabble.com/how-to-use-confirmdialog-box-tf4303548.html#a12249806
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org