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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:15:40+00:00 2026-05-19T04:15:40+00:00

I have a working webpage which just displays external html files inside a div

  • 0

I have a working webpage which just displays external html files inside a div (using ajaxtabs.. based on which menu item is clicked). This whole setup is working fine, but one of the external html file uses colorbox (jquery plugin) to display an embedded google form on a modal window (when a link is clicked)

This external html file on its own works fine, but when it is loaded in on the main page and the link is clicked, the google form replaces the whole page. Any idea what I might be doing wrong here?

PS: I am not a web dev, so please ignore any of the best practices I might be violating 🙂

Update:

Based on David’s recommendation, I assumed that google had some code that was causing the frame to be broken. I copied all the code from b.html to a div within a.html. So now there is just one file a.html. When this tab content from the div is loaded by default, the google form is rendered fine but when I click on different tabs and then click back on the default tab, and then click on the google form, it breaks out of the frame again :(.
Looking at the source code for google form, I don’t see any javascript to break the frame…
any ideas?

  • 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-19T04:15:41+00:00Added an answer on May 19, 2026 at 4:15 am

    Are you using DynamicDrive’s ajaxTabs library? http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/

    If so, it’s possible that scripts in the page you’re loading aren’t running, and the link you’re clicking is reverting to its href instead of using an onclick event like it should.

    From DynamicDrive’s source, here is the function called to load content into a tab:

    ddajaxtabs.loadpage=function(page_request, pageurl, tabinstance){
        var divId=tabinstance.contentdivid
        document.getElementById(divId).innerHTML=ddajaxtabssettings.loadstatustext //Display "fetching page message"
        if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1)){
            document.getElementById(divId).innerHTML=page_request.responseText
            ddajaxtabs.ajaxpageloadaction(pageurl, tabinstance)
        }
    }
    

    As you can see, this just sets the innerHtml property of the target element. A known side effect of innerHtml is that it does not automatically execute script tags when updating the property in this way. JQuery has extra logic built in that basically steps through the new HMTL and invokes any script tags it finds. I do not recommend attempting to reinvent that feature.

    Things you can…

    1) The quick and dirty solution:
    Change this line:

    document.getElementById(divId).innerHTML=page_request.responseText
    

    to:

    $("#" + divId).html(page_request.responseText);
    

    Get the power of jQuery without changing your existing code. DD’s code might be broken in other places too…

    2) Use a better tab library (i.e. the ones built into jQueryUI: http://jqueryui.com/demos/tabs/). More maintainable in the future.

    As an aside, I tend to thing most anything on DynamicDrive is obsolete now and stray away from their solutions most of the time.

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

Sidebar

Related Questions

I have an ASP.NET 4 webpage that contains an update panel which just allows
I am working on a web page that is using jQuery. I have an
I have been working with Visual Studio (WinForm and ASP.NET applications using mostly C#)
I have a working copy of my project, checked out using Subversion 1.5.1. When
I'm working on a project which stores single images and text files in one
I have been working on a web services related project for about the last
I have been working with a string[] array in C# that gets returned from
We have been working with CVS for years, and frequently find it useful to
I have been working on some legacy C++ code that uses variable length structures
I have a working LINQ to SQL model. I want to be able to

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.