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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:07:56+00:00 2026-06-05T23:07:56+00:00

I am studying javascript and I’ve got some problems. I would like to save

  • 0

I am studying javascript and I’ve got some problems. I would like to save the source of a page (html, json, xml) in a javascript variable. I didn’t find much surfing on the net so could you help me? Actually the page is on an external domain so how can I get around the same origin policy limitation?

  • 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-05T23:07:58+00:00Added an answer on June 5, 2026 at 11:07 pm

    I do not believe you can pull the entire source code from an external domain without a server-side script such as PHP. The only cross-domain compatible format is JSONP, which with JQuery would require a JSON response from the other server. Both may pose a security risk to your webpage.

    UPDATE:

    See here for more information.

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

Sidebar

Related Questions

I'm studying javascript and I'm trying to work with some json files. I'm a
I'm studying javascript these days and I have question. I have variable that contain
I'm studying javascript for the first time and I've some doubt: I have two
I am studying javascript and json but every line of code I write is
I'm nearly 2 months old in studying HTML, JavaScript and jQuery. I've done a
I am studying this page: http://www.fxstreet.com/rates-charts/currency-rates/ which is continually updated by JavaScript with new
I'm studying object literals and self-executing functions in Javascript. Looking through some YUI code
I am studying html, css, javascript and jquery in a very basic level yet,
I'm studying for an exam on JavaScript at the moment. I've also got a
Studying vision, I would like to play with the Microsoft Kinect. Can I use

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.