TheDrParker
Programmer
I'm trying to capture the value of a Textbox DTC and update a recordset with it when the user is done updating. the problem I'm running into is:
1) Session variables don't seem to work inside the event handler unless it's run on the server
2) If the event handler is set to run on the server then the onblur can't find the functions created in the event handler because that doesn't run server side.
3)If I create a server side function in another script block and call that from the event handler is doesn't recognize the function.
This is what this part of my code looks like.
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function DataTxtBox1_onblur()
{ MainRecordset.fields.setValue("Field1", "Hello"
Session('Test1') = "Got Page to onblur";
}
//-->
</SCRIPT>
</HEAD>
<BODY LANGUAGE=javascript onblur="DataTxtBox1_onblur()">
Thanx
1) Session variables don't seem to work inside the event handler unless it's run on the server
2) If the event handler is set to run on the server then the onblur can't find the functions created in the event handler because that doesn't run server side.
3)If I create a server side function in another script block and call that from the event handler is doesn't recognize the function.
This is what this part of my code looks like.
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function DataTxtBox1_onblur()
{ MainRecordset.fields.setValue("Field1", "Hello"
Session('Test1') = "Got Page to onblur";
}
//-->
</SCRIPT>
</HEAD>
<BODY LANGUAGE=javascript onblur="DataTxtBox1_onblur()">
Thanx