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

  • Home
  • SEARCH
  • 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 6904243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:01:55+00:00 2026-05-27T08:01:55+00:00

I am writing a Webapplication for a mobile device and I’m currenty stuck with

  • 0

I am writing a Webapplication for a mobile device and I’m currenty stuck with some network issues.
I’ve been testing the software in Google Chrome (& IE8) and my JSONP connection works just perfect.
Here is my Code:

function GetJSON() {

        var cbSuccess = false;
        $.ajax('http://10.221.5.132:1234/WcfService1/WcfTestService/TimeInfo.json/Test?method=?', {
            crossDomain: true,
            dataType: "jsonp",
            success: function (data, text, xhqr) {
                var myObj = $.parseJSON(data);
                alert(myObj.data);
                cbSuccess = true
            },
            error: function (jqXHR, textStatus, errorThrown) {
                $('#ausgabe').html('Error: ' + textStatus + ' - ' + errorThrown); alert("Error");
                cbSuccess = true;
            }
        }
        );
        setTimeout(function () {
            if (!cbSuccess) { alert("connection failed"); }
        }, 5000);
    };

When starting my Webapp on an android device this will not work. The Android Phone is inside the same network as the webservice.

Stefan

[Edit 31.10.2011]
Problem Solved.

It appears, that there is a problem with the httpget method with Android 2.3 in combination with the .NET web methods.

By adding:

$.ajaxSetup({
    type: "POST"
});

I can get the code to work. I hope this helps, if you’re encountering the same problems.

  • 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-05-27T08:01:55+00:00Added an answer on May 27, 2026 at 8:01 am

    It appears, that there is a problem with the httpget method with Android 2.3 in combination with the .NET web methods.

    By adding:

    $.ajaxSetup({
        type: "POST"
    });
    

    i can get the code to work. I hope this helps, if you’re encountering the same problems.

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

Sidebar

Related Questions

I'm writing a mobile web application where scrollbars are not displayed on the device's
I've been writing a Web Application recently that interacts with iPhones. The iPhone iphone
I'm writing a wicket project for a social network.In my project i have authentication
I'm writing a web application that talks over network socket to a server that
My webapplication is online exam site. when user click on start for writing test,
I am writing a test client for a webservice. It's a Netbeans 6.9.1 WebApplication
I'm writing a mobile web application using JQuery Mobile, JQuery, Javascript. This is my
I am writing a web application in ASP.NET 3.5 that takes care of some
I'm writing web application for mobile phones and I need to use geolocation. I
I'm currently writing a web application in HTML5/Javascript and PHP. Some employees of the

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.