~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/media/browser/browser.js

  • Committer: mattgiuca
  • Date: 2008-01-24 23:31:45 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:291
tutorial: Added code to handle top-level menu and subject menu (reads dir
    listing, XML files, and presents a list of links).
    Added code to handle a worksheet page. Presents the page as HTML,
    observing <problem> elements and reading in their XML files.
    Currently does not handle problems; just prints out their source files.
Added media/tutorial/tutorial.css (very minimal currently).

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
 *      Defaults to "application/x-www-form-urlencoded".
121
121
 *      "multipart/form-data" is recommended for large uploads.
122
122
 */
123
 
function do_action(action, path, args, content_type, ignore_response)
 
123
function do_action(action, path, args, content_type)
124
124
{
125
125
    args.action = action;
126
126
    /* Call the server and perform the action. This mutates the server. */
131
131
    if (error != null)
132
132
        alert("Error: " + error.toString() + ".");
133
133
    /* Now read the response and set up the page accordingly */
134
 
    if (ignore_response != true)
135
 
        handle_response(path, response);
 
134
    handle_response(path, response);
136
135
}
137
136
 
138
137
/** Calls the server using Ajax, requesting a directory listing. This should