User Profile

Collapse

Profile Sidebar

Collapse
jordana309
jordana309
Last Activity: Dec 16 '10, 10:19 PM
Joined: Apr 9 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Ah. Got it. So, I had to change the last line to be the following:

    Code:
    var consoleScreen = document.getElementById("consoleOutput");
    		var data = encodeProcess.standardOutput.readUTFBytes(encodeProcess.standardOutput.bytesAvailable);
    		consoleScreen.innerText += data;
    		$('#consoleBox').scrollTop(document.getElementById("consoleBox").scrollHeight);
    Turns out that I wasn't even...
    See more | Go to post

    Leave a comment:


  • I tried that one. It didn't work, nor did any of the other JS scrolling options. The box doesn't have a scroll until it overflows (done with CSS - overflow:scroll ;

    And My code here looks like this:
    Code:
    	<div class="consoleBox">
    		<p id="consoleOutput" class="consoleText"></p>
    	</div>
    	<br />
    	<div style="margin-left:auto;margin-right:auto;width:95%;">
    ...
    See more | Go to post

    Leave a comment:


  • jordana309
    started a topic How do I control scrolling created by CSS?

    How do I control scrolling created by CSS?

    I have a <p> tag that I use to show the output of a program as it dumps it's output to the screen (ECHOs). My javascript has listeners for output, and dumps the output into this p tag. When it exceeds the screen size (defined by a <div> tag), then scrollbars appear. I need to have it always show the bottom of the window, like a terminal window would do. How can I do this automatically with javascript? Let me know what code you'd want...
    See more | Go to post

  • jordana309
    replied to Weird things with .innerHTML
    Thanks Ramanan, but that didn't work either. I'm not sure exactly what is going on, here. I'm going to check the scope of my functions and see that's the problem.
    See more | Go to post

    Leave a comment:


  • jordana309
    started a topic Weird things with .innerHTML

    Weird things with .innerHTML

    Ok, so I'm having some really weird problems. I will try to abstractly explain the problem, as the amount of code involved will be silly to paste in here.

    So, I have a <script> tag that pulls in a toolTip js file. That works just fine with static text on my page. But, I have a table that refreshes out of a database, so every so many seconds, I completely rebuild the table using [CODE].appendChild[.CODE].

    For whatever...
    See more | Go to post
No activity results to display
Show More
Working...