Forums
This topic is locked
Custom Browse Button
Replies
Replied 22 May 2003 14:13:42
22 May 2003 14:13:42 Jonathan Danylko replied:
Yes, use the Input...Image type.
<pre id=code><font face=courier size=2 id=code>
<script language="JavaScript">
<!--
function ConfirmProcess(strConfirmMessage, strFormName)
{
if (confirm(strConfirmMessage)){
document.strFormName.submit();
}
}
//-->
</script>
<form name="myForm" method="post" action="deletecustomer.asp">
<td align=center valign="middle">
<input....>
<input....>
<input type="image" value=" Delete " src="images/ks_delete.gif"
alt="delete" onClick="ConfirmProcess('Are you sure you want to
process?', 'myForm')">
</td>
</form>
</font id=code></pre id=code>
L8R,
Vitoman, M CIW D, MMCP
----------------------------------
He conquers who endures. - Persius
<pre id=code><font face=courier size=2 id=code>
<script language="JavaScript">
<!--
function ConfirmProcess(strConfirmMessage, strFormName)
{
if (confirm(strConfirmMessage)){
document.strFormName.submit();
}
}
//-->
</script>
<form name="myForm" method="post" action="deletecustomer.asp">
<td align=center valign="middle">
<input....>
<input....>
<input type="image" value=" Delete " src="images/ks_delete.gif"
alt="delete" onClick="ConfirmProcess('Are you sure you want to
process?', 'myForm')">
</td>
</form>
</font id=code></pre id=code>
L8R,
Vitoman, M CIW D, MMCP
----------------------------------
He conquers who endures. - Persius
Replied 30 Jul 2008 08:53:26
30 Jul 2008 08:53:26 Steve Davis replied:
WRONG - you obviously didn't read the question properly.
Your solution will work for a submit, reset or button but will not work for browse becase you are (obviously) changing the input type from "file" to "image".
In fact, there is no easy or reliable or cross-browser way to do this.
All the best, Steve
Me? I can't even spell ASP!
Your solution will work for a submit, reset or button but will not work for browse becase you are (obviously) changing the input type from "file" to "image".
In fact, there is no easy or reliable or cross-browser way to do this.
All the best, Steve
Me? I can't even spell ASP!
Replied 19 Aug 2008 19:38:37
19 Aug 2008 19:38:37 satheesh Dominic replied:
I do n't think, it will be possible!
<img src=../images/dmxzone/forum/icon_smile_sad.gif border=0 align=middle>
<img src=../images/dmxzone/forum/icon_smile_sad.gif border=0 align=middle>