www.webdeveloper.com
Results 1 to 1 of 1

Thread: [Google API]Using arrow keys in IE8

  1. #1
    Join Date
    Dec 2009
    Posts
    92

    [Google API]Using arrow keys in IE8

    Hi all,

    I have a code that allows to display Google suggestions. The event that handles this is :

    Code:
        el("inp").oninput=function(){
            addScript("http://www.google.nl/complete/search?callback=suggest&q="+this.value);
        };

    It works except in IE8. It turns out that IE8 is not responding to 'oninput' , so I replaced that with 'onpropertychange' and now it works.

    Except now when I'm trying to go down in the suggestions list and place the value in the input field a request is made and list changes which is very annoying because now you can't come down in the suggestions list.

    Here is the complete code: JS Bin

    Try to change 'oninput' in to 'onpropertychange' for IE8 to get the suggestions working. So basically my question is with what can I replace 'onpropertychange'? Or even better, How can I break down the request when coming down in the list ?
    Last edited by Kor; 09-13-2011 at 04:22 AM. Reason: set a Google API prefix

Thread Information

Users Browsing this Thread

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

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