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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:56:17+00:00 2026-06-04T07:56:17+00:00

Suppose I have a webpage on the web, this page has many elements with

  • 0

Suppose I have a webpage on the web, this page has many elements with ids. How do I fetch these elements using javascript?
I’ve used this chunk with jQuery:

    $.get(websiteUrl, {}, function(results){
    //alert(results); // will show the HTML from anotherPage.html
    console.log($(results).find("bookId").html()); // show "bookId" div in results
    });

But I get error:

 XMLHttpRequest cannot load; Origin http://127.0.0.1:8000 is not allowed by Access-Control-Allow-Origin.

Actually, I’m trying to fetch some data from webpage in Phonegap app on Android.
Any ideas how to do this?

  • 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-04T07:56:18+00:00Added an answer on June 4, 2026 at 7:56 am

    Most browsers adhere to a strict same-origin policy. Meaning you can’t make Ajax requests to a different server. While you can bypass it, it’s not practical to do with every client.

    Your best bet would be to invoke a server-side script to fetch it for you, and return the results to JavaScript.

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

Sidebar

Related Questions

Is this possible using jQuery/PHP? I am looking to have my webpage automatically go
I am using helios 3.6.2. I have an .xhtml opened with Web Page Editor
Supose you have a web page with a lot of this: <div class=story cid-8797378263432
I have a web page that has an HTML table generated by an ASP.NET
Say I have a web page index.html . Suppose the client goes to index.html#section2
I have a Python script that loads a web page using urllib2.urlopen , does
I have configured Tridion for User Generated content, and created a web page using
suppose I have a html markup like this: <div> <p> this is the parent
Suppose I have a ASP.NET Web API controller that uses a service, which in
Suppose I have a mongodb collections A and B. While A has a foreign

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.