summaryrefslogtreecommitdiff
path: root/src/runtime/javascript/minibar/minibar.js
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2010-10-26 11:52:04 +0000
committerhallgren <hallgren@chalmers.se>2010-10-26 11:52:04 +0000
commit1e51a2e9e54898cb157139a508da851a9f6a137e (patch)
tree61fa6706affb834a9708e2abb5954fa22c167784 /src/runtime/javascript/minibar/minibar.js
parent092c75bb5f0ae228f02fb3045e8cb7497f3cc302 (diff)
support.js: some enhancements and new functions
+ ajax_http_get(url,callback) now checks the HTTP response status and shows an error message if the status is not OK (is not 200) + New function node(tag,attrs,children) to create document nodes with arbitraty attributes and children. The functions node() and text() should now be enough to construct arbitrary document trees in an easy, functional way, and many of the more specialized functions could be removed. + When calling the function button(label,action,key), the action can be a function instead of a string, so you can use local/anonymous functions. + New function debug(str) adds text to the element with id=debug, if it exists.
Diffstat (limited to 'src/runtime/javascript/minibar/minibar.js')
0 files changed, 0 insertions, 0 deletions