Hi,
I am doing some validations ( check if e-mail is filled ) on an input field through JavaScript. If there is a valid entry the serverside event may proceed.
If there isn't an entry I display a pop-up but I don't want to trigger the serverside event.
This is the code for the button :
<htmlb:button id = "order"
text = "<%= otr(zbc10/bestel) %>"
onClick = "me_Order"
onClientClick= "thx_win()"/>
And this is the JS :
function thx_win(){
var cfoo = document.getElementById("wa_head-email").value;
if (cfoo==""){
alert("<%= otr(zbc10/no_email) %>");
return false;
}
else{
thx_win = window.open("http:..../sap/zz_cust_caddie/confirmation2.htm",
"", 'toolbar, width=400,height=150');
}
}
Is there a way of doing this ?
Thanks in advance.
Dirk.