Index
Functions list
WebApp.Net exposes many public javascript functions you can use in your own web application. They are all explained below and can be called using WebApp prefix or the shorter WA alias. For detailed informations read the related section from the left menu.
WebApp.AddEventListener(evt, handler);
WebApp.Back();
- Definition
- Go back to the previous location.
WebApp.Form(frm);
WebApp.Header([show, [what, [keep]]);
- Definition
- Show new elements in the header. All parameters are optional.
- show
- Boolean. Show (true) or hide (false) new header elements.
- what
- String of Object. If show == true, hat elements container to show.
- keep
- Array. If show == true, List of elements to keep in base header. Use document.webapp.header.[BACK,HOME,LEFT,RIGHT,TITLE] properties.
WebApp.HideBar();
- Definition
- Hide the address bar of the browser.
WebApp.Home();
- Definition
- Return to home layer. See Layer section for informations about document structure and layers.
WebApp.Loader(obj, show);
WebApp.Player([src]);
WebApp.Postable(keys, values);
WebApp.Request(url[, [prms], [cb], [async], [loader]]);
- Definition
- Send a request to the given url and send the resulting XML object to the callback if defined.
- url
- Mendatory. The URL of the request. If you want to perform a GET the parameters must be on this URL.
- prms
- Optional. List of arguments. If this parameter is defined, the request will be POST instead of GET.
- cb
- Optional. Default is no callback. The function to call upon request success. The signature of the function is
callback(XMLObj, loader, defaultCallback). - async
- Optional. Default is synchronous (blocking). Weither the request should be handled asynchronously.
- loader
- Optional. Object on which a
__lodCSS class will be added to show a loading state.
WebApp.Submit(frm);
- Definition
- Asynchronously submit the given form. The response must be in Webpp.Net XML format.
- frm
- Mendatory. ID or form object to submit.
WebApp.Tab(id, active);
WebApp.Toggle();
- Definition
- Switch between current and previous layer.
| Changes History | |||
|---|---|---|---|
| 20091109 | v0.5.0 | CA | Added new parameter to WebApp.Header WebApp.Header show parameter is now reversed. WebApp.Request default callback is now passed to the custom callback. |
Monday, 09-Nov-2009 15:55:34 CET