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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:07:05+00:00 2026-06-01T11:07:05+00:00

I am using strict doctype and i want to embed a page within a

  • 0

I am using strict doctype and i want to embed a page within a page, for this i cannot use iframe as the doctype is strict , so found out 4 methods:

  • $.ajax()
  • .load()
  • $.getscript
  • <object> tag

can any one please tell me about the pros and con of all these approaches..

Thanks

  • 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-01T11:07:07+00:00Added an answer on June 1, 2026 at 11:07 am

    Ok, i’ll attempt to answer this one.

    • $.ajax() is the root method of jQuery for ajax requests. it is so detailed, you have a lot of parameters to configure it (mostly, they are left as default). this complexity gave rise to the common $.get() and $.post() shorthands for easy use. $.ajax() is what you use if you want fine-grained control of the ajax request and what you want to do with it after.

    • .load() is a “subfunction” of $.get() (it uses get) but is has an implicit callback (aside from an optional callback). it instead loads the requested page, and places it in the element that precedes it as an escaped mark-up. this is good for loading pages that are already formatted to load into the target container.

    • .getScript() is NOT meant to load pages. it’s to retrieve scripts and execute them on the page.

    • <object> tags however…

      The object element’s purpose is to embed into a document a variety of different kinds of media files. Historically, it was used primarily for placing ActiveX controls onto a page, but it can also be used to embed images (.gif, .jpg, and so on), movie files and applets, video files, PDF documents, Flash, and even HTML.

      although it can render HTML, it’s not it’s original purpose. It’s meant for other media.


    personally, i go for $.ajax() or $.get to return JSON data and an HTML template, then have a template engine to build the page. this way, JSON is light on the bandwidth, and templates are cacheable.

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

Sidebar

Related Questions

I have this HTML code fragment (in a valid document using strict doctype): <p>Without
I'm using Firefox 3.5. My doctype is XHTML 1.0 Strict. Let's say I want
This is the doctype that I'm using: <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
I am reading through the XHTML 1.0 Strict Doctype and found out that there's
My site is currently using: <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd> However,
Why is this in an anonymous function undefined when using javascript in strict mode?
I'm designing a html page with strict doctype and there's a form element in
We are using scrollpane.js for scrolling <!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd> <html>
I want to include a silverlight application (.xap file) inside a HTML page. Using
Having a problem embedding a flash chatroom under a doctype equaling strict using the

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.