X
Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

a text area every moment i edited dynamically the scroll bar goes to the top. i know it is not a problem with the website because it works with other browsers

Posted

there is a problem with the scroll bar of a text area. whenever it is edited dynamically the focus area moves to the top instead of holding the focus in the area of the new inserted text. even if i move it down by hand it goes up again.

Chosen solution

ok i fixed by code in my program. when i finished editing, i use this code in javascript. document.getElementById("chatMainTxt").scrollTop=document.getElementById("chatMainTxt").scrollHeight;

Read this answer in context 0

Additional System Details

Installed Plug-ins

  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • npsitesafety
  • Google Update
  • Version 3.15.2.12038
  • RealPlayer Download Plugin
  • Shockwave Flash 11.5 r502
  • RealNetworks(tm) RealDownloader Chrome Background Extension Plug-In
  • RealNetworks(tm) RealDownloader PepperFlashVideoShim Plug-In
  • RealNetworks(tm) RealDownloader HTML5VideoShim Plug-In
  • RealDownloader Plugin
  • Adobe PDF Plug-In For Firefox and Netscape 10.1.1

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0

More Information

Βασικά εφαρμογής
Όνομα
Firefox
Έκδοση
19.0.2
User Agent
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0
Build Configuration
about:buildconfig
Επεκτάσεις
Όνομα
Έκδοση
Ενεργές
ID
AVG Security Toolbar
14.2.0.1
true
avg@toolbar
Adobe Acrobat - Create PDF
1.1
false
web2pdfextension@web2pdf.adobedotcom
DivX Plus Web Player HTML5 <video>
2.1.2.145
false
{23fcfd51-4958-4f00-80a3-ae97e717ed8b}
Java Console
6.0.33
false
{CAFEEFAC-0016-0000-0033-ABCDEFFEDCBA}
Java Console
6.0.35
false
{CAFEEFAC-0016-0000-0035-ABCDEFFEDCBA}
Java Console
6.0.37
false
{CAFEEFAC-0016-0000-0037-ABCDEFFEDCBA}
Σημαντικές τροποποιημένες προτιμήσεις
Όνομα
Τιμή
accessibility.typeaheadfind.flashBar
0
browser.cache.disk.capacity
358400
browser.cache.disk.smart_size.first_run
false
browser.cache.disk.smart_size.use_old_max
false
browser.cache.disk.smart_size_cached_value
358400
browser.places.smartBookmarksVersion
4
browser.privatebrowsing.autostart
true
browser.startup.homepage
www.google.com
browser.startup.homepage_override.buildID
20130307023931
browser.startup.homepage_override.mstone
19.0.2
extensions.lastAppVersion
19.0.2
gfx.direct3d.prefer_10_1
true
network.cookie.prefsMigrated
true
places.database.lastMaintenance
1358901731
places.history.expiration.transient_current_max_pages
53648
plugin.disable_full_page_plugin_for_types
application/pdf
privacy.cpd.offlineApps
true
privacy.cpd.siteSettings
true
privacy.donottrackheader.enabled
true
privacy.sanitize.migrateFx3Prefs
true
security.warn_viewing_mixed
false
Γραφικά
Direct2D ενεργό
true
DirectWrite ενεργό
true (6.2.9200.16492)
GPU #2 Ενεργή
false
ID Κατασκευαστή
0x10de
ID συσκευής
0x0fc1
RAM προσαρμογέα
2048
WebGL Renderer
Google Inc. -- ANGLE (NVIDIA GeForce GT 640 )
Έκδοση οδηγού
9.18.13.697
Επιτάχυνση γραφικών GPU
1/1 Direct3D 10
Ημερομηνία οδηγού
10-2-2012
Οδηγοί προσαρμογέα
nvd3dumx,nvwgf2umx,nvwgf2umx nvd3dum,nvwgf2um,nvwgf2um
Περιγραφή προσαρμογέα
NVIDIA GeForce GT 640
AzureCanvasBackend
direct2d
AzureContentBackend
direct2d
AzureFallbackCanvasBackend
cairo
JavaScript
Incremental GC
true
Προσιτότητα
Ενεργοποιήθηκε
false
Να μην επιτρέπεται η προσιτότητα
0
Εκδόσεις βιβλιοθήκης
Αναμενόμενη ελάχιστη έκδοση
Έκδοση σε χρήση
NSPR
4.9.4
4.9.4
NSS
3.14.1.0 Basic ECC
3.14.1.0 Basic ECC
NSSSMIME
3.14.1.0 Basic ECC
3.14.1.0 Basic ECC
NSSSSL
3.14.1.0 Basic ECC
3.14.1.0 Basic ECC
NSSUTIL
3.14.1.0
3.14.1.0

iamjayakumars
  • Top 10 Contributor
416 solutions 4930 answers

here's a way to make scrolling more pleasant:

1. Start Firefox.

2. Click Tools, Options.

3. Click the Advanced icon, then look in the Browsing section.

4. Enable Use smooth scrolling, then click OK.

Question owner

its already activated. My problem is that when i try to edit the text area dynamically it refreshes and goes to the top

Chosen Solution

ok i fixed by code in my program. when i finished editing, i use this code in javascript. document.getElementById("chatMainTxt").scrollTop=document.getElementById("chatMainTxt").scrollHeight;