Solved

Frame scroll bar in IE windows

Posted on 2010-11-11
20
1,173 Views
Last Modified: 2012-05-10
Dear Expert,

I would like to know how to combine the frame scroll bar at horizontal and vertical into
Internet Explorer Window Scroll bar that will help to save display area.
THe following code provide other experts  for two frame set.
First one is input box and second frame is redirect webpage.
Please view the image you will see my question more.


<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Developer Studio">
<META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
<TITLE>Document Title</TITLE>
<script>
function formSubmit(frm)
{
      document.getElementById("frame1").src="http://www.mywebsite.com/"+frm.text1.value+".htm";
      return false;
}

</script>

</HEAD>
<body>
<form onsubmit="return formSubmit(this)">
<input type="text" name="text1">
<input type="submit" name="submit">
</form>
<iframe width="600" border="0px" id="frame1">
</body>
</HTML>
 
Toggle HighlightingOpen in New WindowSelect AllAccept Multiple Solutions Accept as Solution


Snap16.jpg
0
Comment
Question by:duncanb7
20 Comments
 
LVL 16

Assisted Solution

by:jmatix
jmatix earned 150 total points
ID: 34115920
You can add scrolling="no" to iframe. But if the iframe is not big enough to display the content, content will get clipped.

<iframe height="500" width="600" scrolling="no" border="0" id="frame1">
0
 
LVL 44

Assisted Solution

by:scrathcyboy
scrathcyboy earned 100 total points
ID: 34116019
you cannot combine the scroll bar of an HTML element with the main scroll bar of the browser -- they are two entirely different things, one generated by HTML code (the frame) and the other by the browser.

Rather than use frames, which are outdated and not correcly indexed by search engines, use an IFRAME instead.  IT is easier to use and the borders can be hidden and the scroll bars hidden too.

Google for ' IFRAME how to ' and you will get tons of explanations.
0
 
LVL 13

Author Comment

by:duncanb7
ID: 34116381
Dear,

Scroll="NO" seems is no any different. I think because as follows

Because my webpage is generated  from excel 2003 saveas htm webpage. So I will have   double scroll bar when
I ue two frame in one IE window (that I believe).
But I will directly web  the Excel's webpage at address bar in IE  without input box's input help , it work fine only one horizontal
and vertical scroll no matter how much I zoon the window

Please advise
0
 
LVL 13

Author Comment

by:duncanb7
ID: 34116401
Be Reminded, in excel's htm , there is a lot of sheet icon or click for you
to select different sheet.

What I want just second frame won't create double scroll no matter how much I zoon the window area
or no matter it is excel'htm or not.

Duncan
0
 
LVL 13

Author Comment

by:duncanb7
ID: 34116423
Sorry, typing mistake, I mean when I directly web the Excel's .htm webpage  at address bar in one IE window
it won't create double scroll bar at horizontal and viertical. But when I use two frames to web the Excel
htm page,  it will create double scroll bar even I put scroll="no"
0
 
LVL 13

Author Comment

by:duncanb7
ID: 34122277
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 34126531
scrathcyboy: There is no real difference between frames and iframes. You can hide scrollbars and borders in frames too
0
 
LVL 13

Author Closing Comment

by:duncanb7
ID: 34141603
Thank for all of you tp reply this thread
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 13

Author Comment

by:duncanb7
ID: 34150865
Dear Experts and EE adm,

Since actually I found some difference between iframe and frame when doing scroll bar disable and input box edit
from my three days. If the source(src=)  also has frame insides, Iframe tag  could not disable the scroll bar even
specify scrolling="no". But frame is okay, and for inputbox edit so final I use frame to solve my problem.
FOr input edit box,  iframe is better than frame because cursor is on focus after enter key press and clear
the previous value but not in frame and I need to function to clear the value.

Since mplungjan trigger me  to do the benmark test between frame and iframe, so I award the credit for him even
his reply might not be 100% right or wrong.

I am serious to give credit to others even 1 pt. it is a attitude to engineering life.


Best Regards
Duncan






0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 34153743
It is not the points. It is the grade.
I'd rather have NO points than a "C" grade for a comment that was not a solution
0
 
LVL 13

Accepted Solution

by:
duncanb7 earned 0 total points
ID: 34181553
The reply is already solved and reply what I ask. And I want to keep the credit in this thread,  and I think
high point is high accuracy to the question. Low point is low accuracy to the question and
nothing more than that . It is grading system from mine only. Maybe put it simple.
Even $1US in this world might not be easy to earn, SO $1 dollar might be really good in recent
days in US .  we should think about why people don't give us $1US  


0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 34182150
So reduce the points and give a "B" or delete it.

I do not want a "C" for a comment that is not a solution.

Thanks
0
 
LVL 13

Author Comment

by:duncanb7
ID: 34182924
Dear EE,

After I consider mplungian's comment, and now finanlly I understand what he means.
So I prefer to re-credit this thread  and review the Grading system from EE.

Please help tp re-open this thread for re-credit process

Best Regards

Duncan  
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 34183037
thanks
0
 
LVL 13

Author Comment

by:duncanb7
ID: 34183480
Dear EE

Why  it will go to "closing  Request Pending". I just click Accept Mutliple Solution and grade ths thread and click submit
button. Could you help on this for re-credit process. It happens before in other thread. Or Am I doing
something wrong during credit process. Please advise

Duncan
0
 
LVL 13

Author Closing Comment

by:duncanb7
ID: 34216125
Thanks for your reply and
we should close this thread

Duncan
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now