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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:01:41+00:00 2026-06-03T07:01:41+00:00

Hope there is some out there that can help!, While debugging a WCF service

  • 0

Hope there is some out there that can help!,
While debugging a WCF service that a phonegap application connects to it seems to post twice.

When the application runs normally no Break points etc it all works fine and i only receive 1.
It appears to me that ajax reposts itself if no response is returned from the server after a few seconds.

I will need to confirm this threw wireshark but just wanted to know if anyone else has come accross this before.

$.ajax({
                type: "POST",
                url: ServicePATH ,
                data: JSON.stringify({ objs: arrayobj, parm2: var2, parm3: var3, parm4: 1 }),
                contentType: "application/json",
                dataType: "json",
                success: function (data, textStatus, jqXHR) {
                    CallonSuccess(data);
                },
                error: function (XMLHttpRequest, textStatus, errorThrown) {
                    console.log('error ' + textStatus);
                    console.log('XMLHttpRequest ' + XMLHttpRequest);
                    var str = '';
                    for (prop in XMLHttpRequest) {
                        str += "prop " + prop + " value :" + XMLHttpRequest[prop] + "\n"; //Concate prop and its value from object
                    }
                    console.log(str);
                    console.log('errorThrown ' + errorThrown);
                    console.log('passing ' + JSON.stringify({ objs: arrayobj, parm2: var2, parm3: var3, parm4: 1 }));
                }
            }).done(function () { console.log('Finished ajax'); }); 

Thanks Lmac

  • 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-03T07:01:43+00:00Added an answer on June 3, 2026 at 7:01 am

    Perhaps no solution (see update below) for you but the same behaviour here.

    Without the jquery Mobile framework everything works okay, with the framework embedded it fetches my json file a second time. In Chrome’s Console you can see it under Network: GET status 200 and GET status 304 (not modified).

    I have the option to throw out jQuery Mobile and I surely will. But would be also interested in knowing what’s happening there.

    UPDATE:
    I had the xmlhttprequest within the $(document).ready(function() { }); It seems as if both jQuery and jQuery Mobile react to that.

    If I put the script at the end of the site and make my xmlhttprequest outside the ready-method it fetches my json file only once.

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

Sidebar

Related Questions

I hope someone out there can shed some light on the topic of creating
I'm having some javascript conflict problem, and hope someone can help me out. I'm
I hope there's a SharePoint expert here on SO who can help with this.
I hope there's someone who can help me suggest a suitable data model to
Is there any way (utilizing Reflection I hope) that I can make an instantiated
my SQL skills aren't strong enough to figure this out, hope someone can help.
I hope anyone can help me out in this topic, even if it's not
Is there a good tool that can help to reverse engineer Java classes to
I hope someone can help me with this. I am having some trouble figuring
I hope someone can help me. I have a website that uses javascript to

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.