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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:43:11+00:00 2026-05-11T08:43:11+00:00

I am trying to retrieve an entire webpage using get() and filter() out a

  • 0

I am trying to retrieve an entire webpage using get() and filter() out a specific section. This works fine when the page only includes the section I want to filter but if I input the entire page then it does not work.

Example:

    $(document).ready(function() {         $.get('source.html', function(data) {              $(data).filter('.spad').appendTo('#loadArea');         });              }); 

If source is:

<table class='spad' border='0' cellpadding='0' cellspacing='0'><thead><tr class='head'><th>&nbsp;</th><th class='sep'>&nbsp;</th><th class='sep'>&nbsp;</th><th id='h_a_5_0' colspan='2' class='sep'>Length of day</th><th id='h_a_8_0' colspan='3' class='sep'>Solar noon</th></tr><tr class='head'><th rowspan='2'>Date</th><th class='sep' rowspan='2'>Sunrise</th><th class='sep' rowspan='2'>Sunset</th><th class='sep' rowspan='2'>This day</th><th class='sep' rowspan='2'>Difference</th><th class='sep' rowspan='2'>Time</th><th class='sep' rowspan='2'>Altitude</th><th class='sep NULL'>Distance</th></tr><tr class='head'><th class='sep smaller'>(10<sup>6</sup> km)</th></tr></thead><tbody><tr class='c0'><td>Mar 2, 2009</td><td>5:41 AM</td><td>6:19 PM</td><td>12h 37m 36s</td><td>&#8722; 1m 37s</td><td>12:00 Noon</td><td>69.7° </td><td>148.258</td></tr><tr class='c1'><td>Mar 3, 2009</td><td>5:42 AM</td><td>6:18 PM</td><td>12h 35m 58s</td><td>&#8722; 1m 37s</td><td>12:00 Noon</td><td>69.4° </td><td>148.294</td></tr><tr class='c0'><td>Mar 4, 2009</td><td>5:42 AM</td><td>6:17 PM</td><td>12h 34m 20s</td><td>&#8722; 1m 38s</td><td>12:00 Noon</td><td>69.0° </td><td>148.331</td></tr><tr class='c1'><td>Mar 5, 2009</td><td>5:43 AM</td><td>6:16 PM</td><td>12h 32m 42s</td><td>&#8722; 1m 38s</td><td>11:59 AM</td><td>68.6° </td><td>148.367</td></tr><tr class='c0'><td>Mar 6, 2009</td><td>5:43 AM</td><td>6:15 PM</td><td>12h 31m 03s</td><td>&#8722; 1m 38s</td><td>11:59 AM</td><td>68.2° </td><td>148.405</td></tr><tr class='c1'><td>Mar 7, 2009</td><td>5:44 AM</td><td>6:13 PM</td><td>12h 29m 25s</td><td>&#8722; 1m 38s</td><td>11:59 AM</td><td>67.8° </td><td>148.442</td></tr><tr class='c0'><td>Mar 8, 2009</td><td>5:45 AM</td><td>6:12 PM</td><td>12h 27m 46s</td><td>&#8722; 1m 38s</td><td>11:59 AM</td><td>67.4° </td><td>148.480</td></tr></tbody></table> 

it works fine.

If i point the script at (or download it locally, this is not a cross domain ajax request thing) http://www.timeanddate.com/worldclock/astronomy.html?n=47 nothing shows up.

Any hints as to where I might be going wrong?

  • 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. 2026-05-11T08:43:12+00:00Added an answer on May 11, 2026 at 8:43 am

    You don’t want filter(); filter() removes elements from the set that don’t match the given expression. You want find():

    $(data).find('.spad').appendTo('#loadArea'); 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to retrieve the entire rectangle of a scrollable window using the WIN32
im trying to retrieve this text on a webpage without the line break: <span
I'm trying to retrieve a file from a server using SFTP (as opposed to
Basically I am trying to retrieve a list of stored procedure parameters using Linq
I'm trying to retrieve my contacts using curl. I've succeeded in getting my authToken,
I'm working on a sql class, and trying to figure out how to retrieve
Using PHP, how do I get an entire subset of nodes from an XML
i'm trying to implement a Repository and UnitOfWork patterns using Entity Framework. This is
I am using WCF REST service (GET method) to retrieve my EF4 POCOs. The
im trying to retrieve some data using a reader in vb.net. I dont have

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.