VisiOmatic web client

Namespace

VUtil

Methods

static

flashElement(elem)

Add a short (<400ms) "flash" animation to an element.

Parameters

  • elem object

    Element to be "flashed".

Source

static

readFITSKey(keyword, str) → nullable{string}

Read the value of a FITS header keyword.

Parameters

  • keyword string

    Keyword.

  • str string

    Input string.

Returns

  • string

    Keyword value string, or null if keyword could not be matched.

Source

static

requestURL(url, purpose, action, context, timeout)

Do an AJAX query to a server.

Parameters

  • url string

    Server URL.

  • purpose string

    Purpose of the query (for error messages).

  • action VUtil~queryCallback

    Callback function for successful queries.

  • context object

    Context (this).

  • timeout number

    Query timeout in seconds.

Source

static

updateURL(url, keyword, value) → {string}

Return a URL with a new or updated keyword/value query string.

Parameters

  • url string

    Input URL.

  • keyword string

    keyword.

  • value number | string

    value.

Returns

  • string

    Updated URL.

Source

Type Definitions

queryCallback(context, httpRequest)

Callback for Ajax queries.

Parameters

  • context object

    Context (this).

  • httpRequest object

    XMLHttpRequest object.

Source