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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:49:29+00:00 2026-06-10T00:49:29+00:00

Im using Coda, and Im trying to write a program to use Javascript/Jquery to

  • 0

Im using Coda, and Im trying to write a program to use Javascript/Jquery to load nfl’s html on their stats page (http://www.nfl.com/stats/player), and then remove all of the excess html. Resulting several lists of players and their stat’s.

I’ve tried using `$(‘#container’).load(‘http://www.nfl.com/stats/player’).

This works fine in Coda, but I can’t parse the html the way I want to.

In google chrome I get the error

XMLHttpRequest cannot load http://www.nfl.com/stats/player. Origin null is not 
allowed by Access-Control-Allow-Origin.

From what I understand this is a security feature built into all browsers. Is there a workaround to this issue? Can I use a different type of request?

I understand that i should be using JSONP for this type of request, but I dont believe the nfl has an API that would make this possible.

I’ve seen questions like this get thrown around, but I don’t think anyone’s given a really good solid answer yet.

I think theres still a lot of people wondering if theres an easy way to $.get cross-domain HTML and parse it.

  • 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-10T00:49:30+00:00Added an answer on June 10, 2026 at 12:49 am

    You’re not allowed to do this because it can be used for XSS (cross site scripting) where scripts are accessed by scripts outside of the domain of the site. i.e. you can get cookie information or such this way.

    You will have to do this server side. If you’re using php you can use $content = file_get_contents('http://nfl.com/stats/player'); or you can do it using curl if you wish.

    Otherwise the legit way to do it is through an API, but as you’ve pointed out that isn’t an option in your case.

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

Sidebar

Related Questions

I using coda slider in my page. View it here: http://www.ndoherty.com/demos/coda-slider/1.1.1/ Each tab causes
I'm getting a javascript error when using coda slider in IE8: Expected ']' Weird
I'm using the Coda Slider effect described here: http://jqueryfordesigners.com/coda-slider-effect/ . It works perfectly but
I'm using the coda slider on my website http://joelglovier.com for featured work. All was
I am using CODA from a long time .. now i use aptana studio
I am using the http://jqueryfordesigners.com/coda-popup-bubbles/ Due to my lack of js knowledge and some
All, I'm implementing a Coda like jQuery slider (I'm using Niall Doherty's excellent implementation:
I am using Coda-slider as a jQuery slider plugin, and I am making a
I've started using Coda because I just got a new Mac, and I want
Running Mac OS X 10.5.8, with PHP 5.2.11 Pre-installed. Using Coda 1.6.10. I'm writing

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.