Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: rowexit


Message #1 by "DT-Rene Vazquez" <renevazquez@c...> on Thu, 21 Nov 2002 09:33:59 -0500
Hi All, if someone have used the DSO object in IE5 or superior, and have
tried to validate a record before exiting the row, how I can cancel the
rowexit event to make my DSO stay in the invalid record. I have read
that returning false from the rowexit event handler the rowexit event is
cancelled, but the sample code is in VBScript:
 
<SCRIPT FOR=<tla rid="tla_dso"/>Composers EVENT=onrowexit>
if (txtBorn.value > txtDied.value)
{
    alert("Birth date must be less than or equal to deceased dates");
    return false;
}
</SCRIPT>
 
 
I write my event handler in jscript in this way and the rowexit doesn't
cancel:
 
"<xml onrowexit="rowExit();" ....
 
function rowExit() 
{ 
if (!boolIsRowValid()) 
{
 return false; 
}
 }
 
if someone have deal with this, the help would be extremely appreciated.


  Return to Index