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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:36:26+00:00 2026-06-11T10:36:26+00:00

I am using HTML5. I want to Call API with AJAX. but, not success

  • 0

I am using HTML5.
I want to Call API with AJAX. but, not success to perform this. plz Help me how i Use this.
I want Implement this code PhoneGap. Plz suggest me if any issue or best logic…

<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.1.min.js"></script>
<script>
function loadXMLDoc()
{
alert("okey");
  $.ajax({
  type: 'GET',
  url:'http://www.internationalprom.com/mobile/ipa.php',
  data:{ft:'get',cat:'gallery',action:'top100'},
  success: onsuccess,
  error : onerror,


});
function onsuccess(data){
alert("success 1: "+ data );
// if got success then How i retrive Data from here?


}

function onerror(data){
alert("error 1 :"+data);
}

}
</script>
</head>

<body>

<h2>My CD Collection:</h2>
<div id="myDiv"></div>
<button type="button" onclick="loadXMLDoc()">Get my CD collection</button>

</body>
</html>

Thanks…

  • 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-11T10:36:27+00:00Added an answer on June 11, 2026 at 10:36 am

    If you want to POST data you need to use HTTP POST not HTTP GET and also call json.stringify() on the JSON like this:

    $.ajax({
        type: 'POST',
        url:'http://www.internationalprom.com/mobile/ipa.php',
        data: JSON.stringify({ft:'get',cat:'gallery',action:'top100'}),
        success: onsuccess,
        error : onerror
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently using an API and not a database, and I want to be
When making a feedreader in Javascript (using google's feed API) I want to use
I want to create template in flash using actionscript 3, this template will call
I want to look into developing mobile applications using HTML5. I'm very new to
I am looking at using HTML5 Canvas element for my upcoming project. I want
I am using HTML5,Jquery(v1.6.4) and Jquery-mobile(jquery.mobile-1.0.1.js). I want to populate data dynamically using Jquery.
I have a <span> that I want to rotate. I am using HTML5, CSS3,
I want to achieve this using html and css: I have tried to set
Say i am using some of the html5 data chars and i want to
Hi i want to use windows form application in way like an api from

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.