How to Get text control value when <input type= text

smadduri
smadduri Member
edited October 22, 2012 in Documentum #1

HI ,

Am using D6.5 .

For java script function am using text field as

<input type="text" id="acb" name="acb" onchange="ontextchange" />

When i try to get text field value like  (Text)getControl("acb",Text.class).getValue

am getting null value .

How do we text get control value when <input type    is used instead of     <dmf:text

Any WDK experts can help me pls ..

Tagged:

Comments

  • Haroon_A
    Haroon_A Member
    edited October 21, 2012 #2

    Any reason why you are not using <dmf:text />?

    Not sure if you could use Text controle in your component class, the way you described.

  • smadduri
    smadduri Member
    edited October 22, 2012 #3

    I want onchange function on the text field so that that i can disable other control on the page based on the text entered.

    When i use  "<dmf:text " onchange is not working but when i use <input type ="text" the onchange js function works.

    But am not able to get text control value when using   <input type ="text".

  • VHK
    VHK Member
    edited October 22, 2012 #4

    Hi ,

    This function should be inside the javascript onKeyPress()

    {

    safeCall('postServerEvent', null, null, null, 'changeVisibilty');

    }

    and in the  component behaviour class write a method changeVisibility

    and add your business logic

    Hope it helps