Module AXOJs


module AXOJs: sig .. end
Use GET and POST method for server communication. http_get url (and http_post url arguments) returns (code,message) where code is the HTTP code and message is the message part of the server answer.

type obj = JSOO.obj 
val http_get : string -> int * string
Use GET and POST method for server communication. http_get url (and http_post url arguments) returns (code,message) where code is the HTTP code and message is the message part of the server answer.
val http_post : string -> string -> string -> int * string
val dom_of_xml : string -> JSOO.obj
Use these to convert from xml to dom and the other way around.
val xml_of_dom : JSOO.obj -> string
val pretty_xml_of_dom : JSOO.obj -> string
val null : JSOO.obj
the next values are intended to give arguments to method called with the JSOO.call_method function.
val string : string -> JSOO.obj
val float : float -> JSOO.obj
val int : int -> JSOO.obj
val bool : bool -> JSOO.obj
module Node: sig .. end
module Misc: sig .. end
val blunt_alert : string -> unit
blunt_alert s pop a window with s as a content. As it completely freeze the vm, one should use alert s instead.

The next two functions are NOT TO BE CALLED WITHOUT Firebug ON
val debug : string -> unit
debug s write a message in the Firebug console (if aviable)
val auto_debug : (unit -> 'a) -> 'a
auto_debug f catches exceptions raised by f and write their string equivalent in the Firebug console.