Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8620531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:36:18+00:00 2026-06-12T06:36:18+00:00

I am trying to use the http GET method to retrieve JSON object I

  • 0

I am trying to use the http GET method to retrieve JSON object I have created, then in Titanium I have created a method to retrieve, however it is only retrieving “undefined”

def listJSON() {
   def converter = User.list() as JSON
   System.out.println(converter)
   render(converter)
   //response(converter)
}

The output from grails is correct and the page rendered (from system out) :

[{"class":"testingmobile.User","id":1,"age":22,"email":"test@hotmail.com","name":"Ryan","occupation":"Whatever "}]

The code from the mobile app in Titanium is as follows:

var url = "http://localhost:8080/TestingMobile/user/listJSON";
var client = Ti.Network.createHTTPClient ({
onload : function(e) {
    Ti.API.info("Recieved text: "+ this.responceText);
    var jsonObj = JSON.parse(this.responseText);
    getShow(jsonObj);
    alert('success');
},
onerror : function(e) {
    Ti.API.debug(e.error);
    alert('error');
},
timeout : 5000 
});
client.open("GET", url);
client.send(); 

The console outputs “Received text: undefined”

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T06:36:19+00:00Added an answer on June 12, 2026 at 6:36 am

    responceText

    should be

    responseText

    with an s, not a c.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use the jquery, getJSON method to get JSON data from a
I am trying to use the get method for Map as described in http://db.apache.org/jdo/jdoql_methods.html
I'm trying to use a simple HTTP get to load a string from a
I'm trying to use this http://www.rcsb.org/pdb/software/rest.do REST services with Qt. I did some get
I have been trying to render JSON data in a JQGrid. I get the
I have been trying the code given in How to use YQL to retrieve
I am trying to use the http_get function. But I get a undefined reference
I was trying to use http://www.jongsma.org/gc/scripts/ofx-ba.py to grab my bank account information from wachovia.
I am trying to use http://code.google.com/p/as3svgrendererlib/ in my flash cs 5.5 project to import
We're trying to use Axis2 to call a web service that cannot use HTTP/1.1

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.