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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:02:06+00:00 2026-05-27T05:02:06+00:00

I am building a new template for displaying online help. I have a search

  • 0

I am building a new template for displaying online help.

I have a search field in the toolbar and the first page which calls dhtml_search.htm and in turn dhtml_search.js with two functions that search an array and return results,

function show_results()
function search()

Searching in the toolbar works fine.

However, the same search function doesn’t work when called in the first page, I get an error on line 65 of dhtml_search.js:

object required

I can’t figure out why.

  • 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-27T05:02:08+00:00Added an answer on May 27, 2026 at 5:02 am

    The error is on line 65 when you do this:

    var myDiv = window.top.document.getElementById("body_right");
    myDiv.innerHTML = all_content;
    

    You actually are “replacing yourself” with your ‘all_content’ variable.

    This is the structure:

    div#body_right
        iframe[name=BODY]
            iframe[name=search_body]
    

    The code you are executing is in the iframe[name=search_body] and your script erases all the content in the parent div#body_right so you are destructing your own execution context.

    It works in the toolbar because at that time your code does not execute from the iframe[name=search_body] but from the toolbar frame.

    Hope i’m clear 🙂

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

Sidebar

Related Questions

I'm currently building a 6 page site and have finished the template for the
I have just started building my first Flask app, which currently simply returns output
I have a dedicated server and I'm in need for building new version of
I am building a new site, and I have a folder on desktop with
I have been building a new application using my current understanding of domain driven
I'm building a new Intranet Portal with SharePoint 2007 that will have News, Site
I'm building a new site in Rails, and in the footer of every page
I'm building my first custom editor template for a text area control. My code
I'm building small one page application with rails 3.1 mongodb and backbonejs. I have
I am new to Sitecore and am building my first site using Sitecore 6.

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.