scrolling iframe vs scrolling page

J

Jake Klaus

I have an inline frame that changes in size based on results of a search.
www.torgerson.biz/inventory.htm If a customer limits their search results
by selecting John Deere tractors, for instance, I have no issue. But when a
customer searches for all combines, my frame grows, so I end up with a
scrollbar in the iframe (because the results are more than fit in the
predefined size of the iframe) *AND* a scrollbar in the browser (because the
frame is longer than the page.)

My concern I want people to be able to see all of their results by scrolling
(either with their arrow keys, or their wheelmouse) Presently, when they
have a lot of results, scrolling gets the iframe to scroll, but it scrolls
past the end of the browser, andd they must then move their mouse over to
the other scrollbar and scroll again.

I'm certain there is an obvious answer here, but I am hoping someone out
there has encountered something similar and can teach me something new and
useful. (And save me a bunch of trial and error. OK, and maybe I'm being a
bit lazy. It's been a long day.)

Any ideas would be appreciated.
 
J

Jake Klaus

Also, I should clarify: I'm quite OK with *A* scrollbar. I just don't want
users to have to negotiate *TWO* of them. Thank you for your input.
 
J

Jake Klaus

When I do not specify a height, the frame becomes too short for the user to
even select search options. And there is automatically a scrollbar there.

I should admit I didn't write the code- it's borrowed. Maybe if I provide
it here, you will be able to spot my problem.

<IFRAME name=stbbox src="http://unit.torgerson.disnet.net/" width="800"
height="500">
<!-- Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/ -->
<p>Your browser doesn't support frames. Click <a
href="http://unit.torgerson.disnet.net/" target="_blank">here</a> to view
the page.</p>
</IFRAME>

Thanks again.
 
T

Thomas A. Rowe

Since you have the IFrame set to a width of 800 pixels, then anyone that has a browser window of 800
pixel is going to have to scroll left to right as well.

Have you consider just letting the results appear on a plain page?

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
J

Jake Klaus

Considering....

Though the results are generated on a different domain. If I attempt to
include content from a page outside the domain, FP doesn't allow it. If I
link directly to the page from the other domain, there is no formatting,
logos, etc. That other webserver is somewhat out of my control. That's why
I went with the iframe in the first place.

(The other webserver is provided by one of our parent companies- we can use
their pages for our entire website, but they are cookie-cutter sites, with
just a handful of ugly templates to choose from.)

If it can't be done, it can't be done. I sure appreciate you guys trying to
help. If I figure it out, I'll write back.

Jake Klaus
 
T

Thomas A. Rowe

Ok. Try changing your IFRAME code to the following:

<IFRAME src="http://unit.torgerson.disnet.net" width="600" height="400" hspace="0" vspace="0"
frameborder="0" scrolling="auto"></IFRAME>

Make sure the above is all on one line.


You can see this code in use at:
http://www.warnorg.com/welcome.asp

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top