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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:11:21+00:00 2026-06-13T00:11:21+00:00

this is the message error throwed for the chrome browser, and it works very

  • 0

this is the message error throwed for the chrome browser, and it works very well in IExplorer and FireFox

$ XMLHttpRequest cannot load file:///C:/Users/Lew/Documents/Human%20Staff/students.xml. Origin null is not allowed by Access-Control-Allow-Origin.

…. I dont know why it doesnt work if already defined the variables…

another error mesagge throwed by the developer tool by chrome:

$nombre: [Exception: ReferenceError: telefono is not defined]
$edad : [Exception: ReferenceError: telefono is not defined]
$telefono : [Exception: ReferenceError: telefono is not defined]
$carnet : [Exception: ReferenceError: telefono is not defined]

any idea to fixed?

This is a code snipped:

<pre><code>

    // JavaScript Document
    // File: leerXML.js


   $(document).ready(function(){


   $("#ContentArea").ready(function(){
   $.get("students.xml",{},function(xml){ //Abrimos el archivo students.xml

// Crearemos un string HTML
    HTMLcontent = '<br/><br/>';
    HTMLcontent += '<table width="70%" border="1" cellpadding="0" cellspacing="0">';
    HTMLcontent += '<th>Nombre</th><th>Edad</th><th>Telefono</th><th>Carnet</th>';

   $('estudiante',xml).each(function(i) {

   var nombre ='';
   var edad='';
   var telefono='';
   var carnet='';
   nombre = $(this).find("nombre").text(); 
   edad = $(this).find("edade").text();
   telefono = $(this).find("telefono").text();
   carnet = $(this).find("carnet").text();

  • 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-13T00:11:23+00:00Added an answer on June 13, 2026 at 12:11 am

    You can’t do this because you’re loading the website from a local filesystem. You need to run a web server in order to cross-origin request (the filesystem has an origin of null because it has no domain, and that is never permitted to make a cross origin request).

    Set up a tiny web server and serve your files from that in order to test. See http://code.google.com/p/chromium/issues/detail?id=40787.

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

Sidebar

Related Questions

Got this error message while trying to load view: The model item passed into
I get this error message pageContext cannot be resolved but I have no variable
For some reason my site displays a Cannot display this message error in those
I'm getting this message in error console: Error: uncaught exception: [Exception... Cannot modify properties
When loading up a solution in VS2008 I get this message: An error was
When retrieving packages with Cabal, I frequently get errors with this message: user error
Got this error message while trying to configure an entitydatasource in the designer: My
I get this error message in LogCat: 06-25 15:17:34.495: E/AndroidRuntime(5891): java.lang.RuntimeException: Unable to start
Am getting this error message and matched my brackets and couldn't find anything wrong.
I Have this error message : Possible unitended reference comparison; to get a value

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.