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

Ask A Question

Stats

  • Questions 79k
  • Answers 79k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I'd say quite the opposite, I always put my INotifyPropertyChanged… May 11, 2026 at 4:01 pm
  • Editorial Team
    Editorial Team added an answer Here is macro for you, that will provide you identical… May 11, 2026 at 4:01 pm
  • Editorial Team
    Editorial Team added an answer Original post: List<Company> ValidCompany = ( from c in Companies… May 11, 2026 at 4:01 pm

Related Questions

I am simply trying to retrieve an attribute from XML into my Perl program.
I am trying to retrieve the attribute name and type that exist in an
I am trying to retrieve the largest number from a varchar column that includes
I am trying to find out how to use usercontrols in asp.net mvc. I

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.