Plumtree Portal UI  
 

PlumtreeHelpers.GetExecuteViaEnterJScript Method 

To execute a javascript function when you press enter in a input field, set the onkeypress attribute of the input equal to "return executeViaEnter(event)". Also include the HTMLScript returned by GetExecuteViaEnterJScript in your page. Example: myInput.SetOnKeyPress("return " + PlumtreeHelpers.STR_JS_FUNC_NAME_EXECUTE_VIA_ENTER + "(event);");

public static HTMLScript GetExecuteViaEnterJScript(
   string strValidateFunction
);

Return Value

myScript

See Also

PlumtreeHelpers Class | com.plumtree.portaluiinfrastructure.statichelpers Namespace