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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:30:59+00:00 2026-05-25T14:30:59+00:00

Hello there Iam trying to use the http://paste.kde.org api in order to make it

  • 0

Hello there Iam trying to use the http://paste.kde.org api in order to make it work
My code seems like

var p = {};
p.id=122083;
p.mode='json';

$.ajax({
url: 'http://paste.kde.org/show.php',
data: p,
success: function(data) {
   alert(data.result.id);
}

});

The output json is like :

{ "result": { "id": "122083", "author": "Anonymous", "timestamp": "1316135671", "language": "text", "data": "testing the app" } }

But I can;t make it work, also i have no alerts in the creation of the “pastes” although i can see them created in the paste.kde.org archive

  • 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-25T14:30:59+00:00Added an answer on May 25, 2026 at 2:30 pm

    I don’t believe that paste.kde allows for ajax requests to their api. When attempting to run your code from jsfiddle, I got the following error:

    XMLHttpRequest cannot load http://paste.kde.org/show.php?id=122083&mode=json. Origin http://fiddle.jshell.net is not allowed by Access-Control-Allow-Origin.
    

    paste.kde.org would need to change their response headers to send the Access-Control-Allow-Origin header so that your ajax request could complete.

    You could change your request so that your $.ajax call goes to your local server (let’s say it’s using PHP), and then you could run a curl request to the kde API, and then have your PHP script parrot back the results from paste.kde.org.

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

Sidebar

Related Questions

Hello there!. I am trying to use a public api from wunderground (more info
I want to include Core Location and I'm trying to follow this tutorial: http://www.mobileorchard.com/hello-there-a-corelocation-tutorial/
Hello I am trying to output my memory use in PHP. My code looks
Hello there when I try and use these two lines of code in my
I am currently trying to learn how to use premake 4 in order to
Hello All , I am trying to use preg_match to identify if a single
I am trying to extract data from this String: Hello there. Blah blahblah blah
How do I use crossdomain with ftp? I am trying to do a hello
Hello there I am a newbie trying to prove the working of RS 232
Hello I am trying to use python's pywebsocket HTML5 server, where i use 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.