Created
September 22, 2015 22:26
-
-
Save bjoerntx/a4e07e0d125309d78ea1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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