Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Event Handler problem

Status
Not open for further replies.

TheDrParker

Programmer
Nov 21, 2001
55
US
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(&quot;Field1&quot;, &quot;Hello&quot;);
Session('Test1') = &quot;Got Page to onblur&quot;;
}
//-->
</SCRIPT>

</HEAD>
<BODY LANGUAGE=javascript onblur=&quot;DataTxtBox1_onblur()&quot;>

Thanx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top