Index of values
| (>>>)>) >> [Event_arrows] | ||
| (>>>|)> | ) >> [Event_arrows] | |
| _2d_ [Dom_html] | ||
| _DOMMouseScroll [Dom_html.Event] | ||
| _DOMMouseScroll [Dom_events.Typ] | ||
| _end [Keycode] | ||
| _false [Js] |
Javascript false boolean.
| _object [Dom_html.CoerceTo] | |
| _requestAnimationFrame [Dom_html] |
Call the appropriate requestAnimationFrame method variant (depending on the navigator), or sleep for a short amount of time when there no such method is provided.
| _true [Js] |
Javascript true boolean.
A | |
| a [Dom_html.CoerceTo] | |
| abort [XmlHttpRequest.Event] | |
| abort [Lwt_js_events] | |
| abort [File.ReaderEvent] | |
| abort [Dom_html.Event] | |
| addEventListener [File] |
Add an event listener.
| addEventListener [Dom_html] |
Add an event listener.
| addEventListener [Dom] |
Add an event listener.
| addMousewheelEventListener [Dom_html] |
Add a mousewheel event listener.
| alt [Keycode] | |
| append [Form] | |
| appendChild [Dom] |
The expression appendChild n c behave the same as n##appendChild(c) (appends c to n) but avoid the need of coercing the different objects to node t.
| area [Dom_html.CoerceTo] | |
| arguments [Url.Current] |
The arguments of the current url as an association list.
| arr [Event_arrows] | |
| array [Js] |
Conversion of arrays from OCaml to Javascript.
| arrayBuffer [Typed_array] | |
| arrayBuffer [File.CoerceTo] | |
| array_empty [Js] |
Constructor of Array objects.
| array_get [Js] |
Array access: array_get a i returns the element at index i of array a.
| array_length [Js] |
Constructor of Array objects.
| array_set [Js] |
Array update: array_set a i v puts v at index i in array a.
| as_string [Url.Current] |
as_string is the original string representation of the current Url.
| async [Lwt_js_events] |
async t records a thread to be executed later.
| async_loop [Lwt_js_events] |
async_loop is similar to seq_loop, but each handler runs independently.
| attr [Dom.CoerceTo] | |
B | |
| backspace [Keycode] | |
| base [Dom_html.CoerceTo] | |
| beforeunload [Dom_html.Event] | |
| bind [Js.OPT] |
Apply a function returning an optional value to an optional value
| blockquote [Dom_html.CoerceTo] | |
| blur [Lwt_js_events] | |
| blur [Dom_html.Event] | |
| blurs [Lwt_js_events] | |
| body [Dom_html.CoerceTo] | |
| bool [Js] |
Conversion of booleans from OCaml to Javascript.
| bounded_split [Regexp] |
bounded_split r s i is like split r s except that the result's length is less than i.
| br [Dom_html.CoerceTo] | |
| buffered_loop [Lwt_js_events] |
buffered_loop is similar to seq_loop, but any event that occurs during an execution of the handler is queued instead of being ingnored.
| button [Dom_html.CoerceTo] | |
| buttonPressed [Dom_html] | |
| bytestring [Js] |
Conversion of strings of bytes from OCaml to Javascript.
C | |
| call [Js.Unsafe] |
Performs a Javascript function call.
| cancel [Event_arrows] | |
| canvas [Dom_html.CoerceTo] | |
| caption [Dom_html.CoerceTo] | |
| case [Js.OPT] |
Pattern matching on optional values.
Unsafe coercion between to Javascript objects.
| coerce [Js] |
Apply a possibly failing coercion function.
| coerce_opt [Js] |
Apply a possibly failing coercion function.
The date constructor, as an object.
| date_day [Js] |
Constructor of Date objects: new date_fromTimeValue (y, m, d) returns a Date object corresponding to year y, month m and day d.
| date_fromTimeValue [Js] |
Constructor of Date objects: new date_fromTimeValue (t) returns a Date object initialized with the time value t.
| date_hour [Js] |
Constructor of Date objects: new date_fromTimeValue (y, m, d, h) returns a Date object corresponding to year y to hour h.
| date_min [Js] |
Constructor of Date objects: new date_fromTimeValue (y, m, d, h, m') returns a Date object corresponding to year y to minute m'.
| date_month [Js] |
Constructor of Date objects: new date_fromTimeValue (y, m) returns a Date object corresponding to year y and month m.
| date_ms [Js] |
Constructor of Date objects: new date_fromTimeValue (y, m, d, h, m', s, ms) returns a Date object corresponding to year y to millisecond ms.
| date_now [Js] |
Constructor of Date objects: new date_now () returns a Date object initialized with the current date.
| date_sec [Js] |
Constructor of Date objects: new date_fromTimeValue (y, m, d, h, m', s) returns a Date object corresponding to year y to second s.
| dblclick [Lwt_js_events] | |
| dblclick [Event_arrows] | |
| dblclick [Dom_html.Event] | |
| dblclick [Dom_events.Typ] | |
| dblclicks [Lwt_js_events] | |
| dblclicks [Event_arrows] | |
| decodeURI [Js] |
Decode a URI: replace by the corresponding byte all escape sequences but the ones corresponding to a URI reserved character and convert the string from UTF-8 to UTF-16.
| decodeURIComponent [Js] |
Decode a URIComponent: replace all escape sequences by the corresponding byte and convert the string from UTF-8 to UTF-16.
| decode_arguments [Url] |
decode_arguments s parses s returning the sliced-diced association list.
| def [Js] |
Consider a value into a possibly undefined value.
| default_http_port [Url] |
The default port for Http communications (80).
| default_https_port [Url] |
The default port for Https communications (443).
| del [Dom_html.CoerceTo] | |
| delete [Keycode] | |
| delete [Js.Unsafe] |
Delete an object property.
| div [Dom_html.CoerceTo] | |
| dl [Dom_html.CoerceTo] | |
| document [Dom_html] |
The current document
Coercion from a general DOM element to an HTML element.
| element [Dom.CoerceTo] | |
| elementClientPosition [Dom_html] |
Position of an element relative to the viewport
| empty [Js.OPT] |
No value.
| empty_form_contents [Form] | |
| encodeURI [Js] |
Encode a URI: convert the string to UTF-8 and replace all unsafe bytes by the corresponding escape sequence.
| encodeURIComponent [Js] |
Same as encodeURI, but also encode URI reserved characters.
| encode_arguments [Url] |
encode_arguments a expects a list of pair of values of the form (name,value) were name is the name of an argument and value it's associated value.
| error [XmlHttpRequest.Event] | |
| error [Lwt_js_events] | |
| error [File.ReaderEvent] | |
| error [Dom_html.Event] | |
| esc [Keycode] | |
| escape [Js] |
Escape a string: unsafe UTF-16 code points are replaced by 2-digit and 4-digit escape sequences.
| eval_string [Js.Unsafe] |
Evaluate Javascript code
| eventAbsolutePosition [Dom_html] |
Returns the absolute position of the mouse pointer.
| eventRelatedTarget [Dom_html] |
Returns this event related target.
| eventTarget [Dom_html] |
see Dom.eventTarget
| eventTarget [Dom] |
Returns which object is the target of this event.
F | |
| f1 [Keycode] | |
| f10 [Keycode] | |
| f11 [Keycode] | |
| f12 [Keycode] | |
| f2 [Keycode] | |
| f3 [Keycode] | |
| f4 [Keycode] | |
| f5 [Keycode] | |
| f6 [Keycode] | |
| f7 [Keycode] | |
| f8 [Keycode] | |
| f9 [Keycode] | |
| fieldset [Dom_html.CoerceTo] | |
| fileReader [File] | |
| filename [File] |
filename handles old firefox without name property
| first [Event_arrows] |
Behaves as the first element of the list to terminate
| float [Js] |
Conversion of OCaml floats to Javascript numbers.
Conversion of Javascript number objects to OCaml floats.
from_string Json.t<ty> s safely unmarshall the JSON s into an OCaml value of type ty.
| full_handler [Dom_html] |
see Dom.full_handler
| full_handler [Dom] |
Create an event handler that invokes the provided function.
| fun_call [Js.Unsafe] |
Performs a Javascript function call.
G | |
| get [XmlHttpRequest] |
get url makes an asynchronous request to the specified url
| get [Url.Current] |
get () returns a value of type Url.url with fields reflecting the state of the current Url.
| get [Typed_array] | |
| get [Js.Unsafe] |
Get the value of an object property.
| get [Js.OPT] |
Get the value.
| getContext [WebGL] | |
| getDocumentScroll [Dom_html] |
Viewport top/left position
| get_form_contents [Form] | |
| get_fragment [Url.Current] |
Because the fragment of the Url for the current document can change dynamically, we use a functional value here.
| global_replace [Regexp] |
global_replace r s by replaces all of the matches of r in s by by.
H | |
| h1 [Dom_html.CoerceTo] | |
| h2 [Dom_html.CoerceTo] | |
| h3 [Dom_html.CoerceTo] | |
| h4 [Dom_html.CoerceTo] | |
| h5 [Dom_html.CoerceTo] | |
| h6 [Dom_html.CoerceTo] | |
| handler [Dom_html] |
see Dom.handler
| handler [Dom] |
Create an event handler that invokes the provided function.
| hashchange [Dom_html.Event] | |
| head [Dom_html.CoerceTo] | |
| home [Keycode] | |
| host [Url.Current] |
The host part of the current url.
| hr [Dom_html.CoerceTo] | |
| hsl [CSS.Color] |
build a color from the values of hue, saturation, and lightness channels.
| html [Dom_html.CoerceTo] | |
I | |
| iframe [Dom_html.CoerceTo] | |
| img [Dom_html.CoerceTo] | |
| init_lexer [Deriving_Json_lexer] |
Create a fresh lexbuf record.
| inject [Js.Unsafe] |
Coercion to top type.
| input [Lwt_js_events] | |
| input [Dom_html.CoerceTo] | |
| input [Dom_html.Event] | |
| inputs [Lwt_js_events] | |
| ins [Dom_html.CoerceTo] | |
| insert [Keycode] | |
| insertBefore [Dom] |
insertBefore p n c inserts node n as child of node p, just before node c, or as last child if p is empty.
| instanceof [Js] |
Tests whether a Javascript object is an instance of a given class.
see Dom.invoke_handler
| invoke_handler [Dom] |
Invoke an existing handler.
| isNaN [Js] | |
| is_supported [WebSockets] | |
| iter [Js.OPT] |
Apply a function to an optional value if it is available.
| iter [Event_arrows] |
Behaves as one element of the list, then another one, etc.
J | |
| js [CSS.Angle] | |
| js [CSS.Length] | |
| js [CSS.Color] |
Projection from OCaml to Js.
| js_t_of_js_string [CSS.Color] |
Checks the well-formedness of a string or fails with Invalid_argument
make_event ev target creates a Lwt thread that waits for the event ev to happen on target (once).
| map [Js.OPT] |
Apply a function to an optional value if it is available.
| map [Dom_html.CoerceTo] | |
| match_result [Js] |
Convert a match result handle into a MatchResult object.
| matched_group [Regexp] |
matched_group r i is the ith group matched.
| matched_string [Regexp] |
matched_string r return the exact substring that matched when evaluating r.
| math [Js] |
The Math object
| meta [Dom_html.CoerceTo] | |
| meth_call [Js.Unsafe] |
Performs a Javascript method call.
| minus [Keycode] | |
| ml [CSS.Angle] | |
| ml [CSS.Length] | |
| ml [CSS.Color] |
Projection from Js to OCaml.
This function returns the event, together with the numbers of ticks the mouse wheel moved.
| mousewheel [Dom_html.Event] | |
| mousewheel [Dom_events.Typ] | |
| mousewheels [Lwt_js_events] | |
N | |
| new_obj [Js.Unsafe] |
Create a Javascript object.
| no_handler [Dom_html] |
see Dom.no_handler
| no_handler [Dom] |
Void event handler (Javascript null value).
| nodeType [Dom] | |
| null [Js] |
The null value.
| number_of_float [Js] |
Conversion of OCaml floats to Javascript number objects.
O | |
| obj [Js.Unsafe] |
Creates a Javascript literal object.
| ol [Dom_html.CoerceTo] | |
| onbeforeunload [Lwt_js_events] | |
| onhashchange [Lwt_js_events] | |
| onhashchanges [Lwt_js_events] | |
| onload [Lwt_js_events] |
Returns when the page is loaded
| onpopstate [Lwt_js_events] | |
| onpopstates [Lwt_js_events] | |
| onresize [Lwt_js_events] | |
| onresizes [Lwt_js_events] | |
| opt_tagged [Dom_html] | |
| opt_taggedEvent [Dom_html] | |
| optgroup [Dom_html.CoerceTo] | |
| option [Js.OPT] |
Convert option type.
| option [Dom_html.CoerceTo] | |
| output [Json] |
Marshall any OCaml value into this JSON representation.
P | |
| p [Dom_html.CoerceTo] | |
| param [Dom_html.CoerceTo] | |
| parseFloat [Js] | |
| parseInt [Js] | |
| path [Url.Current] |
The path of the current url as a list of small string.
| path_of_path_string [Url] |
path_of_path_string s splits s on each "/" character.
| path_string [Url.Current] |
The path of the current url as one long string.
| perform [XmlHttpRequest] |
perform is the same as XmlHttpRequest.perform_raw_url except that the Url argument has type Url.url.
| perform_raw_url [XmlHttpRequest] |
perform_raw_url ?headers ?content_type ?post_args ?get_args ?form_arg url makes an asynchronous request to the specified url with specified options.
| pixel_get [Dom_html] | |
| pixel_set [Dom_html] | |
| plus [Keycode] | |
| popStateEvent [Dom_html.CoerceTo] | |
| popstate [Dom_html.Event] | |
| port [Url.Current] |
The port of the current url.
| post_form_contents [Form] | |
| pre [Dom_html.CoerceTo] | |
| preventDefault [Lwt_js_events] |
Call this to prevent the default handler for the event.
| progress [XmlHttpRequest.Event] | |
| progress [File.ReaderEvent] | |
| pure_expr [Js.Unsafe] |
Asserts that an expression is pure, and can therefore be optimized away by the compiler if unused.
Q | |
| q [Dom_html.CoerceTo] | |
| quote [Regexp] |
Escapes characters with special meaning in the regexp context.
Constructor of RegExp objects.
| regExp_copy [Js] |
Constructor of RegExp objects.
| regExp_withFlags [Js] |
Constructor of RegExp objects.
| regexp [Regexp] |
Simple regexp constructor.
| regexp_string [Regexp] |
regexp_string s creates a regexp matching the exact string s.
| regexp_with_flag [Regexp] |
Regexp constructor with flag that allow for global or case-insensitive search.
| removeChild [Dom] |
The expression removeChild n c behave the same as n##removeChild(c) (remove c from n) but avoid the need of coercing the different objects to node t.
| removeEventListener [Dom_html] |
Remove the given event listener.
| removeEventListener [Dom] |
Remove the given event listener.
| replaceChild [Dom] |
The expression replaceChild p n c behave the same as p##replaceChild(n, c) (replace c by n in p) but avoid the need of coercing the different objects to node t.
| replace_first [Regexp] |
replace_first r s by replaces the first match of r in s by by.
| request_animation_frame [Lwt_js_events] |
Returns when a repaint of the window by the browser starts.
| resize [Dom_html.Event] | |
| return [Keycode] | |
| return [Js.OPT] |
Consider a value as an optional value.
| rgb [CSS.Color] |
build a color from the values of red, green, and blue channels.
| rgb_of_name [CSS.Color] |
Converts a color name into three integers representing the Red, Green and Blue channels.
| right [Keycode] | |
| run [Event_arrows] | |
S | |
| script [Dom_html.CoerceTo] | |
| scroll [Lwt_js_events] | |
| scroll [Dom_html.Event] | |
| scrolls [Lwt_js_events] | |
| search [Regexp] |
search r s i evaluates to the index of the match and the match result or None if s (starting from i) doesn't match r.
| select [Lwt_js_events] | |
| select [Dom_html.CoerceTo] | |
| select [Dom_html.Event] | |
| selects [Lwt_js_events] | |
| seq_loop [Lwt_js_events] |
seq_loop (make_event ev) target handler creates a looping Lwt thread that waits for the event ev to happen on target, then execute handler, and start again waiting for the event.
| set [Url.Current] |
set u replaces the current Url for u.
| set [Typed_array] | |
| set [Js.Unsafe] |
Set an object property.
| set_fragment [Url.Current] |
set_fragment s replaces the current fragment by s.
| shift [Keycode] | |
| sleep [Lwt_js] |
sleep d is a threads which remain suspended for d seconds and then terminates.
| some [Js] |
Consider a value into a possibly null value.
| space [Keycode] | |
| split [Regexp] |
split r s splits the string s erasing matches with r.
| stopPropagation [Dom_html] | |
| stop_listen [Dom_events] | |
| str_array [Js] |
Convert an opaque string_array t object into an array of string.
| string [Js] |
The string constructor, as an object.
| string [File.CoerceTo] | |
| string_match [Regexp] |
string_match r s i matches the string s starting from the ith character.
| string_of_name [CSS.Color] |
Gives the string equivalent of the argument.
| string_of_t [CSS.Angle] | |
| string_of_t [CSS.Length] | |
| string_of_t [CSS.Color] |
Convert to a string representation (for debugging purpose mainly).
| string_of_url [Url] |
string_of_url u returns a valid string representation of u.
Returns true if a value is available, false otherwise.
| text [Dom.CoerceTo] | |
| textarea [Dom_html.CoerceTo] | |
| tfoot [Dom_html.CoerceTo] | |
| th [Dom_html.CoerceTo] | |
| thead [Dom_html.CoerceTo] | |
| timeout [XmlHttpRequest.Event] | |
| title [Dom_html.CoerceTo] | |
| to_array [Js] |
Conversion of arrays from Javascript to OCaml.
| to_bool [Js] |
Conversion of booleans from Javascript to OCaml.
| to_bytestring [Js] |
Conversion of strings of bytes from Javascript to OCaml.
| to_float [Js] |
Conversion of Javascript numbers to OCaml floats.
| to_option [Js.OPT] |
Convert to option type.
| to_string [Deriving_Json.Json] | |
| to_string [Deriving_Json] |
to_string Json.t<ty> v marshall the v of type ty to a JSON string.
| to_string [Js] |
Conversion of strings from Javascript to OCaml.
Returns when a CSS transition terminates on the element.
| typeof [Js] |
Returns the type of a Javascript object.
U | |
| ul [Dom_html.CoerceTo] | |
| undefined [Js] |
The undefined value
| unescape [Js] |
Unescape a string: 2-digit and 4-digit escape sequences are replaced by the corresponding UTF-16 code point.
| unsafe_input [Json] |
Unmarshall a string in JSON format as an OCaml value (unsafe but fast !).
| up [Keycode] | |
| url_of_string [Url] |
url_of_string s parses s and builds a value of type url if s is not a valid url string, it returns None.
| urldecode [Url] |
urldecode s swaps percent encoding characters for their usual representation.
| urlencode [Url] |
urlencode ?with_plus s replace characters for their percent encoding representation.
V | |
| variable [Js.Unsafe] |
Access a Javascript variable.
The current window
| wrap_callback [Js] |
Wrap an OCaml function so that it can be invoked from Javascript.
| wrap_meth_callback [Js] |
Wrap an OCaml function so that it can be invoked from Javascript.
| write [Deriving_Json.Json] | |
Y | |
| yield [Lwt_js] |
yield () is a threads which suspends itself and then resumes as soon as possible and terminates.
|
|
