Skip to main content
4-Participant
September 22, 2011
Question

XUI empty textbox value

  • September 22, 2011
  • 2 replies
  • 840 views

Hi all,


I have a textbox in a XUI. There are cases when the textbox entry should be empty. That textbox string or empty value is populated to an attribute in the document xml. When deleting a string in the box the value returned to the change event listener is the last stored value. It seems to not recognize when the last character or a full string is deleted from the box, which should have created an empty textbox/value essentialy. Any recommendations? I'm using JavaScript with the XUI. I claim to not be a XUI or interface expert.


Thank you,


Bryan

    2 replies

    18-Opal
    September 22, 2011
    Hi Bryan-



    What event are you listening for? You might need to try listening for a
    different event type to catch the deletion of the last character.



    --Clay



    Clay Helberg

    Senior Consultant

    TerraXML


    bbender4-ParticipantAuthor
    4-Participant
    September 22, 2011

    Yep, I needed to add an event listener forDOMNodeRemovedFromDocument.


    Thanks!