treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Help with text area jumping around

  • When you navigate away from teh textarea, the textarea jumps back to the top of the textarea, someone else coded this, any ideas?

  • Here is the code:

    <textarea name="ctl00$cphDetails$atcTroubleTicket$apnlTTPanel$uniDescription$txtCtrl" rows="2" cols="20" id="ctl00_cphDetails_atcTroubleTicket_apnlTTPanel_uniDescription_txtCtrl" tabindex="8" onfocus="FocusColorChanger(this, true);" onblur="FocusColorChanger(this, false);" onchange="PageChecker.globalChange = true;LimitInput(this, 'ctl00_cphDetails_atcTroubleTicket_apnlTTPanel_uniDescription_lblTextLengthStatus', 6000);" onkeypress="LimitInput(this, 'ctl00_cphDetails_atcTroubleTicket_apnlTTPanel_uniDescription_lblTextLengthStatus', 6000);" style="height:150px;width:100%;">
  • Can you provide a link?
  • I wish I could, it is on a company website that is pass protected, but.. just wondering if this looks right:
    onfocus="FocusColorChanger(this,true);" onblur="FocusColorChanger(this,false);"
    only when you click away or click back the text area jumps around to near the top. I tried to look through this forum for ideas but did not find antything similar. Thanks!
  • Where is your FocusColorChanger() function?

    function FocusColorChanger(a,b) {
    ...
    ... etc etc...
    }