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 9190217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:24:41+00:00 2026-06-17T20:24:41+00:00

I am creating a PhoneGap application that should call some REST web service methods

  • 0

I am creating a PhoneGap application that should call some REST web service methods to get some data and to send some data to the server.

Somewhere in my program I have got the following code:

$.getJSON("https://mgeowiki4.iwvi.uni-koblenz.de/API/UniKoblenz/validateCredentials/SampleUser/Password",
       function(data){
             echo("data: " + data);
   })
   .success(function() { alert("second success"); })
   .error(function() { alert("error"); })
   .complete(function() { alert("complete"); });

Unfortunately when I execute this nothing happens. I am using Eclipse with the android emulator to test this. None of the alert messages are displayed. Even the error message is not displayed.

If I call the service in browser I get the following if the password was not correct:

{"passwordIsValid": "false"}

and the following if the password is correct:

{"passwordIsValid": "true"}

How can I get those results in my PhoneGap application?
I kind of have no clue what to do 🙁

  • 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-17T20:24:42+00:00Added an answer on June 17, 2026 at 8:24 pm

    Did you allow the ajax-endpoint in the whitelist?

    Whats the output of logcat?

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

Sidebar

Related Questions

I'm creating a PhoneGap app for Android. To get data from the (remote) server
im creating a phonegap application with images that will be updated weekly, i am
I'm creating a Phonegap application that will perform differently on first run. The way
I'm creating a web app (using phonegap) that needs to retrieve an xml document
I'm creating a phonegap application for multiple platforms (specifically, Playbook and iPad) that requires
I am creating a Phonegap & JQuery mobile application. I have some buttons, and
I'm creating a phonegap application which involves backbone.js, underscore.js, and require.js I want to
I am creating an PhoneGap application for iPhone. When I am designing and testing
I have stepped through both tutorials that I could find for creating phonegap plugins:
Creating liquid layouts is an immense pain. Now, I totally understand that tables should

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.