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

  • Home
  • SEARCH
  • 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 3453442
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:22:29+00:00 2026-05-18T09:22:29+00:00

My page needs to grab a specific div from another page to display within

  • 0

My page needs to grab a specific div from another page to display within a div on the current page. It’s a perfect job for $.load, except that the HTML source I’m pulling from is not necessarily well-formed, and seems to have occasional tag errors, and IE just plain won’t use it in that case. So I’ve changed it to a $.get to grab the HTML source of the page as a string. Passing it to $ to parse it as a DOM has the same problem in IE as $.load, so I can’t do that. I need a way to parse the HTML string to find the contents of my div#information, but not the rest of the page after its </div>. (PS My div#information contains various other div‘s and elements.)

EDIT: Also if anyone has a fix for jQuery’s $.load not being able to parse response HTML in IE, I’d love to hear that too.

  • 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-05-18T09:22:30+00:00Added an answer on May 18, 2026 at 9:22 am

    If the resource you are trying to load is under your control, your implementation spec is poorly optimized. You don’t want to ask your server for an entire page of content when you only really need a small piece of that content.

    What you’ll want to do is isolate the content you want, and have the server return only what you need.

    As a side note, since you are aware that you have malformed HTML, you should probably bite the bullet and validate your markup. That will save you some trouble (like this) in the future.

    Finally, if you truly cannot optimize this process, my guess is that you are creating an inconsistency because some element in the parsed HTML has the same ID as an element on your current page. Identical ID’s are invalid and lead to many cross-browser JavaScript problems.

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

Sidebar

Related Questions

I want to upgrade a specific page element every minute. I know how to
On this site each page is made up of multiple .jsp files. There is
I'm currently using this to get the class for a specific bit of HTML
I'm trying to figure out how keep track of the incoming page a visitor
I have a question which I see from googling has been discussed at length..
so right now I'm writing a Windows 7 Gadget using Javascript (w/HTML) that will
In expression engine: I have a site that businesses can sign up and then
I need to be able change the position of a background image in a
We are performance tuning our web site at the moment and have the main
I have the following list <ul class=tabs> <li><a href=testlink.php>First link</a></li> <li><a href=testlink2.php>Second link</a></li> </ul>

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.