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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T06:29:33+00:00 2026-06-16T06:29:33+00:00

I want to create a dynamic height Iframe. I am building a custom search

  • 0

I want to create a dynamic height Iframe.

I am building a custom search engine in which i have to show my data with the google search data.

Means: If i enter “asdq” in the search textbox then it will show my data result with custom google search result.

I want to change the height of the iframe accordant to the content send by the google.
Means:Let Google send 10 row then my iframe size will be 100px if Google send 1 data then 10px etc.

If I fix the height of the iframe then scroll bar comes to the iframe if more data come from Google.

you can see my problem here

Actually i want to remove the scroll bar of the iframe so that only one scroll bar will be there that is pages scroll bar.

please help

Thanks in advance.

  • 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-16T06:29:34+00:00Added an answer on June 16, 2026 at 6:29 am

    We can’t set the size of Iframe if it is getting data from other domain means if we don’t have access to the body of the iframe.

    We can use this to over come form this problem.

    <script type="text/javascript">
        google.load('search', '1'); // loads Google Search library, v 1
    // get a custom search control & keep it in cseControl
    // note: put your own custom search ID number here
    var cseControl = new  google.search.CustomSearchControl('009827885688477640989:igzwimalyta');
    // open pages from search results clicks on the same page
    cseControl.setLinkTarget(google.search.Search.LINK_TARGET_SELF);
    // when there are no matches, explain why
    cseControl.setNoResultsString("Sorry, there are no pages in this web site that match  all the search terms.");
    // make the search field visible in div with ID 'cseDiv'
    cseControl.draw('divGoogleResult');
    
     cseControl.execute(userInput);
    
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have issue where i want to create Dynamic function which will do some
I want to create dynamic number of thread which is depends on the database
I want to create a dynamic Expression<Func<T,Y>> . Here is the code which works
I have less experience with Java Swing and I want to create a dynamic
I want to create a component which can be used like: <mc:chart data=#{bean.data} width=200
I want to create a dynamic proxy, which can delegate its methods to different
I need some help. I want to create a dynamic line chart using Google's
I have an .NET 4.0 application using Caliburn.Micro. I want to create a dynamic
i want create Dynamic Slideshow in Jquery i'm Write this code var ctx =
I want to create dynamic tabPages in TabControl. In each tabPage I create dataGridView

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.