Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: A new chatterbox flavour

by samtregar (Abbot)
on Dec 19, 2004 at 19:18 UTC ( #416038=note: print w/replies, xml ) Need Help??

in reply to A new chatterbox flavour

Nicely done. Two beefs: 1) sending on enter would make it easier to use and 2) the chat box is too big and makes me scroll to see the bottom. I'm running Firefox 0.9.1 on Linux if that helps tracking down #2.


Replies are listed 'Best First'.
Re^2: A new chatterbox flavour
by Aristotle (Chancellor) on Dec 19, 2004 at 21:32 UTC

    I had a hard time making the chat buffer fill the window and have scrollbars on it when the content grows, so I just made it a fixed size. Change the 480px in the CSS if you need something smaller for now.

    Thanks for the compliments and feedback. :-)

    Makeshifts last the longest.

      Yeah, that's a pain. I did it for the Krang website for an iframe. Here's how:

      function reSize() { var iframe = document.getElementById("ifrm"); if (window.innerHeight) { // Netscape compatible iframe.height = window.innerHeight - 150; } else if( document.documentElement && document.documentElement.clientHeight ) { //IE 6+ in 'standards compliant mode' iframe.height = document.documentElement.clientHeight - 150; } else if( document.body && ocument.body.clientHeight ) { //IE 4 compatible iframe.height = document.body.clientHeight - 150; } }

      I called that function like this:

      <body onload="reSize()" onresize="reSize()">

      I don't remember where I got this voodoo from but I sure as heck didn't come up with it myself!


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://416038]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2020-06-02 11:23 GMT
Find Nodes?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?

    Results (17 votes). Check out past polls.