Home: htmlArea 2: htmlArea 2 & 3 archive (read only): htmlArea v2.0:
how can i disable focus?



dawwwid
New User

Feb 7, 2005, 6:53 AM


Views: 7478
how can i disable focus?

hi,

i have form on web page with 2 htmlAreas and other form element. after loading a page second htmlArea became focused. how can i disable this focus()?

thx.


Luis
Veteran

Feb 8, 2005, 3:03 PM


Views: 7435
Re: [dawwwid] how can i disable focus?

In function editor_setmode(objname, mode) search for these two blocks and comment out the lines in green:

editor_updateOutput(objname);
//editor_focus(editor_obj);

editor_filterOutput(objname)
//editor_focus(editor_obj);

Then, if you want another element to have focus onload, set the focus to the field in your textarea's page or skip this step if none.

<script language='javascript1.2'>
editor_generate('YourTextareaName');
document.all['yourInitialFocusedFieldName'].focus();
</script>


Greetings


Don't give up!!
http://webstationone.com/test/htmlarea