The toplevel object for gWidgetsWWW2 apps stores page specific
information. As there can potentially be several gwindow
instances on a page (using renderTo
), however all share the
same toplevel instance. This instance holds a reference to the
evaluation environment, the request that generates the page, the
objects populating the page, and a queue for holding JavaScript
commands (produced by method calls, say).
The sharing of this toplevel object amongs each component is the
reason why the constructors require a specification of either a
container
or parent
argument.
add_object(obj, id)
Add object to objects list
call_handler(id, signal, params, e_cookies)
lookup widget by id, notify any observer of this signal
call_post_proxy(id, param)
Run proxy, return JSON encoded object
call_proxy(id, param)
Run proxy, return JSON encoded object
call_transport(id, param)
Run transport
call_upload(id, param, post_data)
process a file upload, sets value via svalue if file exists
do_layout()
Update layout from toplevel
get_object_by_id(id)
Lookup object by its id
js_queue_flush()
Flush JavaScript queue
js_queue_push(x)
push command (string) to queue for JavaScript Commands
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.