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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:12:47+00:00 2026-05-14T06:12:47+00:00

I was adding recent videos gadget on my blog. In that widget i was

  • 0

I was adding recent videos gadget on my blog. In that widget i was supposed to add this line

<script src="/feeds/posts/default?orderby=published&alt=json-in-script&callback=showrecentpostswiththumbs">

also, i added another script which was having the method showrecentpostswiththumbs [ used in callback ]. Please let me know what does above syntax do?

Edit
After Lord’s comment 🙂

Actually, my blog is hosted on blogspot.com. So from that point of view, if you will append /feeds/posts/default?orderby=published&alt=json-in-script to any blog url it will generate some code. I just wanted to know what does it do? and what happens to the method which is used in callback parameter [ regardless of what is the definition of callback method 🙂 ].

for eg: http://googleblog.blogspot.com/feeds/posts/default?orderby=published&alt=json-in-script

  • 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-14T06:12:47+00:00Added an answer on May 14, 2026 at 6:12 am

    It’s impossible to tell just from what you’ve posted, but the parameter naming in the URL suggests JSONP.

    The basics of JSONP are to allow cross-domain AJAX calls by wrapping otherwise-bare JSON objects in a function call, so that the result can be executed as a script.

    JSON code:

    function getJSON(url) {
        var xhr = new XHR(url); // pseudocode
        xhr.onsuccess = callback;
        xhr.send();
    }
    
    function callback(data) {}
    

    JSON response:

    { "items" : [1, 5, 7] }
    

    Equivalent JSONP code:

    function getJSONP(url) {
        var script = document.createElement("script");
        script.src = url + "&callback=callback");
        script.type = "text/javascript";
        document.body.appendChild(script);
    }
    
    function callback(data) {}
    

    JSONP response:

    callback({ "items" : [1, 5, 7] })
    

    Edit

    JSONP it is. Compare the results of the following three requests:

    • http://googleblog.blogspot.com/feeds/posts/default?orderby=published&alt=json
    • http://googleblog.blogspot.com/feeds/posts/default?orderby=published&alt=json-in-script
    • http://googleblog.blogspot.com/feeds/posts/default?orderby=published&alt=json-in-script&callback=showrecentpostswiththumbs

    The first returns the feed as raw JSON, the second returns it as JSONP with a default callback name, and the third returns it as JSONP using the supplied name for the callback function.

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

Sidebar

Related Questions

I have taken note of some recent (and not so recent) blog posts on
i get this error: Traceback (most recent call last): File <stdin>, line 1, in
I am trying to show the 8 most recent scans added by doing this:
I've looked through the recent questions on this, but I cannot find a solution
Can anyone help me with this strange error I'm getting when adding a new
After doing a lot of research posting this question. Adding Images from json data
I got this error when run test.py C:\Python32>python.exe test.py Traceback (most recent call last):
I am adding a system to leave notifications for users that can be displayed
On a recent post I was told that there are differences between the way
I'd like to add search interface in TabView. I read this document. But it

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.