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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:54:20+00:00 2026-05-30T08:54:20+00:00

Just getting into the PhoneGap development on the Mac. I have a .NET service

  • 0

Just getting into the PhoneGap development on the Mac. I have a .NET service hosted on server that does not have DNS assigned. Can I use the ip address in phonegap.plist? My code works in browser and even as a web version on the actual iphone. Soon as I compile from xcode it seems to not be working (not even on emulator). I ran this js through lint and now im in a spot of bother… Here is what I am trying to do.

I call GetEstimate on button click:

function GetEstimate(From, To) {
"use strict";
varType    = "GET";
varUrl     = "http://xx.xxx.xxx.xx/service.svc/" + 
"GetBasicEst?pickupPostalCode="+ From + "&dropoffPostalCode="+ To +"";
varContentType    = "application/json; charset=utf-8";
varDataType = "jsonp";
varProcessData = true;
alert("GetEstimate");
new CallService();}

function CallService(){
alert("Inside Call Service");
"use strict";
$.ajax({
       type          : varType, //GET or POST or PUT or DELETE verb
       url           : varUrl, // Location of the service
       data          : varData, //Data sent to server
       contentType   : varContentType, // content type sent to server
       dataType      : varDataType, //Expected data format from server
       processdata   : varProcessData, //True or False
       success       : function(data) {//On Successfull service call
       alert("Success");
       var innerHtml = "";
       var rhigh=data.EstimateHigh;
       var rlow=data.EstimateLow;
       alert(rlow);
       $("#rHigh").html(rhigh);
       $("#rLow").html(rlow);                       
       $("#rHigh").formatCurrency();
       $("#rLow").formatCurrency();                 
       },
       //error: ServiceFailed // When Service call fails
       });}

The alert inside CallService does fire then it just seems to stop there…does not call $.ajax(

I could be way out in left field so any suggestions are helpful.

  • 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-30T08:54:21+00:00Added an answer on May 30, 2026 at 8:54 am

    I got it !! Drew: I marked you answer about the * as correct. Thank you for that. I tried a few things to get it working so I will list what I did. I changed the IP to be a dns resolving name, I took Ip out of Phonegap.plist so just the * was there. I then added a line of code to ajax call jsonp : ‘callback’. Not sure which one did it but its working now.

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

Sidebar

Related Questions

I have a friend who's just getting into .NET development after developing in Java
I am just getting into MEF and I have come across a problem that
I am just getting into SQL Server, and I have some experience with MS
Just getting into SQLite and I understand it does not use datatypes the same
I'm just getting into WCF programming. I've set up a self-hosted test web service
I'm just getting into desktop Cocoa development (I have experience with iOS development). If
I'm just getting into creating some WCF services, but I have a requirement to
I'm just getting into unit testing, and have written some short tests to check
I'm just getting into ASP.NET Been avoiding it for years as I'm a desktop
I am just getting into more client-side stuff in ASP.NET using Javascript, and there's

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.