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

  • Home
  • SEARCH
  • 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 6796761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:31:35+00:00 2026-05-26T18:31:35+00:00

jQuery has the $.getJSON() function that I use to load json files from other

  • 0

jQuery has the $.getJSON() function that I use to load json files from other domains like so:

$.getJSON('http://somesite.com/file.js', function(output) {
   // do stuff with the json data
});

I was wondering if I can do the same with xml files from other domains or do I have to use a server side language for that?

This is the xml document I would like to load:

http://google.com/complete/search?output=toolbar&q=microsoft

  • 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-26T18:31:36+00:00Added an answer on May 26, 2026 at 6:31 pm

    I agree with @viyancs , simply speaking if you want to get xml of other domain, there is a cross-domain-restriction, the way to solve this is create a proxy, so the request process is:

    1. use $.ajax to request your proxy(with the real xml url you want to access).

    2. your proxy retrive the xml url content.

    3. your proxy returns the content to your $.ajax call.

    For more detail have a look at: http://developer.yahoo.com/javascript/howto-proxy.html

    BTW: why you dont have to do this for JSON? it is a technique called JSONP.

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

Sidebar

Related Questions

Jquery has a great language construct that looks like this: $(document).ready(function() { $(a).click(function() {
jQuery has cool methods like getJSON, get and load. However all of them in
Does anyone know of a jQuery plugin that has 'helpers' or extensions like those
I'm using jQuery's .getJSON function to parse a set of search results from a
I want to do the following... $('.showcomments').click(function() { $(this).parent().hide(); jQuery.getJSON('comments.json', function($data) { $(this).parent().append($data['value']) //this
Using jQuery I get JSON object that extracts one row from database. That row
I have a jquery that has first server function call using post and next
I have a jquery menu that has so many entries that it extends further
I'm using a jQuery plugin that has its functions defined as such: $('#mydiv').pluginAction({ someproperty:
I created a page that has a JQuery based dialog using the standard JQuery

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.