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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:17:31+00:00 2026-06-12T09:17:31+00:00

I have web application which is comprised of an index.html file which includes an

  • 0

I have web application which is comprised of an index.html file which includes an <iframe>. The index.html file loads different pages in the <iframe>. Each of those pages is has its own independent Javascript and CSS.

Everything works so far.

I am now thinking about loading those pages using Ajax calls into a <div>in the index.html instead of loading them into an <iframe>. I have done some tests and it is possible but there is an issue that worries me and since I’m new to this technique I thought maybe some experts here can share knowledge.

Issue #1:

When loading those pages directly to a <div> in the index.html file, the new page loads into the same DOM as the index.html itself. Therefore there can be conflicts between element classes and IDs of the page and hosting index.html for example $("#foo").hide(); from the page will actually hide the elements with class foo in the index.html file as well as the page. Is there any way, I can put the page code in some sort of sandbox preventing it from affecting index.html?

Issue #2:

When removing a page (possibly to replace it with another page), there is a risk part of its code will still stay in the memory (as mentioned here). Is there any way to prevent this effect? Of course a positive answer to the first issue will cover this one
because if the page runs in a sandbox, unloading the page should unload its javascript code as well.

Issue #3:

The page is a complete HTML file with its own <head>, <body> and <title>elements. That means it is going to be affected with the CCS rules from the hosting index.html file as well. How can I prevent these negative side effects?

The paged-navigation system without requiring to reload the whole page seems to be a common interaction mechanism for many modern web sites. How is it possible to load a page dynamically without those side effects (without <iframe>)?

  • 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-12T09:17:32+00:00Added an answer on June 12, 2026 at 9:17 am

    What you are talking about sounds like a single-page-app. In which case I would recommend going with one of the many existing frameworks that address all the issues you are facing.

    There are several in existence, these are just a couple.

    Knockout.js (knockoutjs.com)

    Ember.js (emberjs.com
    )

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

Sidebar

Related Questions

I have a web application which process the data collected from different client machines
I have a web application which needs to perform a file copy operation and
I have a web application which contains both secure (SSL) and non-secure pages. A
We have the usual web.xml for our web application which includes some jsp and
I have web application which we deployed in a production . We have separate
I have web application of which major part is javascript. I request images from
I have a web application which uses the globalization values being passed from sql
I have one web application which I have been working for some time.I am
I have a web application which is deployed by the means of Flask. I'm
Using JDeveloper as my IDE, I have a web application which calls services provided

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.