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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:05:45+00:00 2026-06-14T19:05:45+00:00

This should be an easy one. but its not going well for me. Just

  • 0

This should be an easy one. but its not going well for me.

Just for the heads up, even though i dont believe it has an influence: i am doing this in phonegap.

I’ve created a wcf service that connects my app to the database.
Instead of connecting to the wcf service directly, i’ve made a simple html page that takes the GET parameters from the url, and connects to the database with those values

Alright, i’ve put a test file called ajax_info.html on the site, and my scripts are working fine. But when i put the url above in, it wont do anything. i connected my phone to fiddler, and absolutely nothing happens…

Here’s my script (credits to wc3schools).

   function loadXMLDoc()
    {
    var xmlhttp;
    if (window.XMLHttpRequest)
      {// code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp=new XMLHttpRequest();
      }
    else
      {// code for IE6, IE5
      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    xmlhttp.onreadystatechange=function()
      {
      if (xmlhttp.readyState==4 && xmlhttp.status==200)
        {
        document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
        }
      }
      var user= "something";
      var pass= "something";
    xmlhttp.open("GET", "http://XX.XX.XXX.XX:8080/wcf/site.html"+"?user="+user+"&pass="+pass,true);
    xmlhttp.send();
    }

This code is not working at all:

function login(){
       $.ajax({

            type: "GET",
            url: "http://XX.XX.XXX.XX:8080/wcf/site.html",
            data: {"user":"something", "pass":"something"},
            // processData: true,
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            success: function (msg) {
                        alert(msg);
                    },
            error: function (msg) {

                       $.each(msg, function() {
                            $.each(this, function(k, v) {
                                alert(v);
                            });
                        });
                    }

  });
    }
  • 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-14T19:05:46+00:00Added an answer on June 14, 2026 at 7:05 pm

    Try this…

    $.get("http://XX.XX.XXX.XX:8080/wcf/site.html", {"user":"something", "pass":"something"}, function() {
        alert("success");
      })
    .success(function() { alert("second success"); })
    .error(function() { alert("error"); })
    .complete(function() { alert("complete"); });
    

    Greetings.

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

Sidebar

Related Questions

This one should be easy. I just can't figure out what to search for...
Possible Duplicate: Property Name and need its value Hi, This one should be easy
this should be an easy one, but I can't seem to get mysql to
OK, this should be easy, but I do not find the solution, at least
This should be and easy one for the LINQ gurus out there. I'm doing
This should be easy (at least no one else seems to be having a
Should be an easy one. I thought, from reading this blog post that I
This should be easy, just curious. I know httpd is the HTTP daemon, just
This should be easy to find out but I can't seem to find it
It seems this should be easy but I'm having a lot of difficulty using

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.