ondblclick - Double Click Script

Activates an event handler when a mouse double click occurs.

Category

events

Syntax

<xp:eventHandler event="ondblclick" attributes>content</xp:eventHandler>

Usage

For detailed event handler syntax, see eventHandler - Event Handler (property).

Examples

This input box has both client and server handlers for the ondblclick event. The client handler runs first. If the confirm statement returns true (the user responds OK), the server handler runs.
<xp:inputText id="inputText1" value="#{requestScope.status}">
	<xp:eventHandler event="ondblclick" submit="true"
		refreshMode="complete">
		<xp:this.action>
			<![CDATA[#{javascript:requestScope.status = "Input box double clicked"}]]>
		</xp:this.action>
		<xp:this.script>
			<![CDATA[return confirm ("Do you want to submit?")]]>
		</xp:this.script>
	</xp:eventHandler>
</xp:inputText>