Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

 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);

0 votes



One answer

Permanent link

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

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 11,079

Question asked: Jul 16 '19, 2:43 p.m.

Question was seen: 3,826 times

Last updated: Jul 16 '19, 7:37 p.m.

Confirmation Cancel Confirm