~ubuntu-branches/ubuntu/utopic/moodle/utopic

« back to all changes in this revision

Viewing changes to mod/scorm/request.js

  • Committer: Package Import Robot
  • Author(s): Thijs Kinkhorst
  • Date: 2014-05-12 16:10:38 UTC
  • mfrom: (36.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20140512161038-puyqf65k4e0s8ytz
Tags: 2.6.3-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
    //popupwin(url+"\n"+param);
42
42
    httpReq.open("POST", url,false);
43
43
    httpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
44
 
    httpReq.send(param);
 
44
    try {
 
45
        httpReq.send(param);
 
46
    } catch (e) {
 
47
        return false;
 
48
    }
45
49
    if (httpReq.status == 200) {
46
50
        //popupwin(url+"\n"+param+"\n"+httpReq.responseText);
47
51
        return httpReq.responseText;