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

« back to all changes in this revision

Viewing changes to www/media/common/util.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:
428
428
    {
429
429
        /* FIXME: Encoding not supported here (should not matter if we
430
430
         * only use ASCII names */
431
 
        data += "--" + boundary + "\r\n"
 
431
        data += "--" + boundary + "\n"
432
432
            + "Content-Disposition: form-data; name=\"" + arg_key
433
 
            + "\"\r\n\r\n"
434
 
            + arg_val + "\r\n";
 
433
            + "\"\n\n"
 
434
            + arg_val + "\n";
435
435
    }
436
436
 
437
437
    for (var arg_key in args)
446
446
            extend_data(arg_key, arg_val);
447
447
    }
448
448
    /* End boundary */
449
 
    data += "--" + boundary + "--\r\n";
 
449
    data += "--" + boundary + "--\n";
450
450
 
451
451
    return data;
452
452
}