Utility functions that handle converting javascript event objects into a name/value pair format that can be sent to the remote server.
| tapestry. event | Utility functions that handle converting javascript event objects into a name/value pair format that can be sent to the remote server. |
| Functions | |
| buildEventProperties | Takes an incoming browser generated event (like key/mouse events) and creates a js object holding the basic values of the event in order for it to be submitted to the server. |
| buildTargetProperties | Generic function to build a properties object populated with relevent target data. |
| buildNodeProperties | Builds needed target node properties, like the node’s id. |
buildEventProperties:function( event, props )
Takes an incoming browser generated event (like key/mouse events) and creates a js object holding the basic values of the event in order for it to be submitted to the server.
| event | The javascript event method is based on, if it isn’t a valid browser event it will be ignored. |
| props | The existing property object to set the values on, if it doesn’t exist one will be created. Returns: |
The desired event properties bound to an object. Ie obj.target,obj.charCode, etc..
buildTargetProperties:function( props, target )
Generic function to build a properties object populated with relevent target data.
| props | The object that event properties are being set on to return to the server. |
| target | The javscript Event.target object that the original event was targeted for. |
The original props object passed in, populated with any data found.
Takes an incoming browser generated event (like key/mouse events) and creates a js object holding the basic values of the event in order for it to be submitted to the server.
buildEventProperties:function( event, props )
Generic function to build a properties object populated with relevent target data.
buildTargetProperties:function( props, target )
Builds needed target node properties, like the node’s id.
buildNodeProperties:function( props, node )