www.webdeveloper.com
Results 1 to 5 of 5

Thread: HTML Input element

  1. #1
    Join Date
    Apr 2013
    Posts
    3

    HTML Input element

    Hi,

    we have a company website (service now) which has inputs that are auto completed by something called Ajax Reference completer.

    When I enter a value manually in the field, it gets autocompleted from a database of values.
    but when I set the value attribute to something, it doesn't do it, it is like it is waiting for some event to be triggered.

    I had a select element that behaved kind of in the same way (if it isn't validated, the second one is unavailable). I triggered the "onchange" event and it works.

    I tried a lot of things, to no avail...

    Any help appreciated....


    Clovis

  2. #2
    Join Date
    Mar 2012
    Posts
    1,113
    1. Presumably the auto-complete system is using an "onchange" mechanism that only validates changes. A pre-set value is not a change.

    2. Why does it need auto-completing if you are setting the value attribute correctly?

  3. #3
    Join Date
    Apr 2013
    Posts
    3
    1. the Onchange event doesn't do anything.
    2. It needs it because I cannot save the page if it hasn't checked the value is correct.

    Thanks

  4. #4
    Join Date
    Apr 2013
    Posts
    3
    Would there be a way to, instead of setting the value, make it believe it was entered text manually?
    Right now I use powershell "Send-Keys, which doesn't work great.

  5. #5
    Join Date
    Feb 2013
    Location
    USA
    Posts
    40
    Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles