vegui. sk. formtools.js

Summary
Returns cursor position inside a input or textarea form element
Moves the caret to a certain position in the form element
Returns the (pixels) position of the caret in an input style element

Functions

vsk_frm_cursor_pos

function vsk_frm_cursor_pos(input)

Returns cursor position inside a input or textarea form element

Parameters

Node inputinput or textarea html node

vsk_frm_cursor_set

function vsk_frm_cursor_set(input,
n)

Moves the caret to a certain position in the form element

Parameters

Node inputinput or textarea html node
int nposition (at the nth character)

vsk_frm_cursor_offset

function vsk_frm_cursor_offset(input)

Returns the (pixels) position of the caret in an input style element

Parameters

Node inputinput or textarea node

Returns

Objectcontaining x and y for the caret position
{ x : n, y : n }
function vsk_frm_cursor_pos(input)
Returns cursor position inside a input or textarea form element
function vsk_frm_cursor_set(input,
n)
Moves the caret to a certain position in the form element
function vsk_frm_cursor_offset(input)
Returns the (pixels) position of the caret in an input style element