It's all about the answers!

Ask a question

IBM JAZZ RTC 6.0.5 Cannot find function xhrGet in object Calculated value post


Rafael Rodriguez Montes (2301285160) | asked Jul 16 '19, 2:43 p.m.

 Hello, I'm trying to send some parameter via rest but I got this error:

Cannot find function xhrGet in object 
I'm using a javascript calculated value in the attribute. 
but not working here is the code:

var xhrArgs = {
    url: URL_STRING,
    handleAs: "text",
    load: function(data){
      // Replace newlines with nice HTML tags.
      data = data.replace(/\n/g, "<br>");

      // Replace tabs with spaces.
      data = data.replace(/\t/g, "&nbsp;&nbsp;&nbsp;");

      targetNode.innerHTML = data;
    },
    error: function(error){
      targetNode.innerHTML = "An unexpected error occurred: " + error;
    }
  }

  // Call the asynchronous xhrGet
  var deferred = dojo.xhrGet(xhrArgs);

One answer



permanent link
Davyd Norris (7316) | answered Jul 16 '19, 7:37 p.m.

That sounds like this script is running on the server - see my previous post about how to check. One of the ways is to check whether xhrGet is null

Your answer


Register or to post your answer.