Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scrolling cells/tables?

Status
Not open for further replies.

DJClare

Programmer
May 22, 2002
4
DE
Hello

Thank you for reading this.

I've just switched to Dreamweaver from writing all my own code (I'm not that much of a purist - they were quite simple sites!)

Can I make an internal cell/table scroll (so just a small section of the page not the whole thing) I knew how to do this with frames, but I'm stumbling a bit blind with tables.

Alternatively, can I reload a table/cell within a page, so that you can continue to read the next page of text?

Thank you

DJClare (yes, I'm a real DJ... my word, a DJ with a brain...or part of one!)
 
Hi.

If I understand you correctly, I can help you out with you first problem. If you want a section of your site to scroll you can use DHTML. I did it on my own site at in the news section. If that's what your after just copy the code and apply it to your own. If I remember correctly, I got it from this site dhtmlcentral.com . They have many tutorials and stuff. Check it out. I hope this helps.

-DanH
 
Hi real DJ Clare! :)

I think the best thing would be the use of IFRAME, as Cheech wrote - it solves both of your problems, it may show only a part of a table and also you may easily reload data in it without reloading whole page.

The only problem with it - Netscape 4.7 and older doesn't support IFRAME tag.... :-( Good Luck! :)
 
Hi guys

Thank you for your responses, you've all given me a lot to consider (and get cross about late at night when I can't get it to work! :) )

Danielh68 you have a lovely cleanly designed site and your scroller is great.

I do love the web! Where else in the world could you ask total strangers for help and get such enthusiastic responses. Thank you all. I owe you a virtual beer!

DJClare
 
[tt]I was just wondering. Why can't Dynamic Drive get a better looking logo? :)

[tt]Not sure what I'm doing yet.
 
Tis a bit scrappy isnt it. The secret of life is honesty and fair dealing. If you can fake that, you've got it made.
Groucho Marx (1895-1977)
 
an alternative would be to use a <div> in the cell you want to scroll and then you can simply apply the following css attribute to it..

overflow-y: scroll

...or...

overflow-y: auto

...and when you want to alter the contents of the cell, you can just alter the innerHTML of the <div>.

if you need more details on this, let me know.

ss...
 
i'm also rather interested in Mr Squirrels' suggestion.
It seems abit much to ask for you to mail me so why not just whack it up for all who might find it usefull?

Yours
Ramsey@skruffnekk.com
 
There are some very easy dhtml behaviours available from Macromedia homesite such as the one featured here

you can set the parameters yourself, insert images instead of up and down directions whatever. A simple and quick way of scrolling a section of your page.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top