Languages :: PHP :: scrolling |
|||
| By: roe1and |
Date: 14/04/2008 11:15:15 |
Points: 20 | Status: Answered Quality : Excellent |
| quick question. if i run a script in a web browser is it possible to have it scroll down with the results automatically(like it does when you run something in the console?) | |||
| By: VGR | Date: 15/04/2008 18:30:50 | Type : Answer |
|
| yes and no. the easiest solution is to output in a frame/iframe/textarea with a vertical scrollbar. I think the cursor position will stay at the end of the contents and thus scroll down. An other possibility that comes to my mind is to use javascript to position the cursor at the end of the body contents... I don't know which one is best nor if any of the two will actually work for you ;-) |
|||
| By: VGR | Date: 15/04/2008 18:31:30 | Type : Comment |
|
| just a precision : frame, iframe, textarea, DIV... anything which is block-level and can have a scrollbar ;-) | |||
| By: roe1and | Date: 16/04/2008 10:36:27 | Type : Comment |
|
| perfect! | |||
| By: VGR | Date: 16/04/2008 18:26:08 | Type : Comment |
|
| glad to have had good ideas ;-) if you've one minute to spare, could you show your solution in here ? you can copy-paste html code between [ code ] and [ /code ] (without the spaces) |
|||
|
Do register to be able to answer |
|||
| Add This Article To: | |||
| |
|
|
|
| |
|
|
|









