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 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 have a page that needs to combine data from four different webrequests into
I have a web page that always needs to stay current. I do not
I need to grab the statuses from a Facebook page via PHP to display
I've got a PHP application which needs to grab the contents from another web
I have a aspx page (details page) that needs to be loaded in a
I'm developing a web page that needs to take an HTTP Post Request and
I have a page with a form on it that needs to post to
I've got a page with multiple forms that load via ajax. Each form includes
I need to grab the latest post from a facebook like page. I'm an
I need to grab the text Home or 'Home' from this code: <%@ Page

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.