Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created September 22, 2015 22:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/a4e07e0d125309d78ea1 to your computer and use it in GitHub Desktop.
Save bjoerntx/a4e07e0d125309d78ea1 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
// attach the 'textFieldClicked' event
TXTextControl.addEventListener("textFieldClicked", function (e) {
fieldClicked(e.fieldName, e.fieldType, e.typeName);
});
// do an AJAX postback on the UpdatePanel
function fieldClicked(fieldName, fieldType, typeName) {
__doPostBack('<%= UpdatePanel1.ClientID %>', fieldName);
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment