Adding a timeout to Auto Complete doesn't work for IE

We implemented our own declarative auto complete component. So we're manually handling KeyUp and KeyDown.
One thing that we need to do is to add a timeout so that when the user is typing, we don't fire the bean code to do the query on every key pressed, but only do it after say half a second. That way if the user is intending to type 3 keys, we only need to fire our query once, where realHandleKeyUpOnSuggestField is the function that calls the query among other things.
This is called from our ClientListener
function handleKeyUpOnSuggestField(evt) {
    var realHandleKeyUpOnSuggestField = function () {
        // start the popup aligned to the component that launched it
        var inputField = evt.getSource();
        var suggestPopup = inputField.findComponent("suggestPopup");
        //   var suggestTable = inputField.findComponent("suggestTable");
        //don't open when user "tabs" into field
        var valueStr = inputField.getSubmittedValue();
        // Special characters coming from scanner. Don't popup if that's the case.
        if (suggestPopup.isShowing() == false && evt.getKeyCode() != AdfKeyStroke.TAB_KEY) {
            //hints = {align:AdfRichPopup.ALIGN_AFTER_START, alignId:evt.getSource().getClientId()+"::content"};
            var alignTo = inputField.getClientId() + "::content";
            var hints = {
                align : AdfRichPopup.ALIGN_AFTER_START, alignId : alignTo
            suggestPopup.show(hints);
            //disable popup hide to avoid popup to flicker on
            //key press
            suggestPopup.hide = function () {
        //suppress server access for the following keys
        //for better performance
        if (evt.getKeyCode() == AdfKeyStroke.ARROWLEFT_KEY || evt.getKeyCode() == AdfKeyStroke.ARROWRIGHT_KEY || evt.getKeyCode() == AdfKeyStroke.ARROWLEFT_KEY || evt.getKeyCode() == AdfKeyStroke.SHIFT_MASK || evt.getKeyCode() == AdfKeyStroke.END_KEY || evt.getKeyCode() == AdfKeyStroke.ALT_KEY || evt.getKeyCode() == AdfKeyStroke.HOME_KEY) {
            return false;
        if (evt.getKeyCode() == AdfKeyStroke.ESC_KEY) {
            hidePopup(evt);
            return false;
            // query suggest list on the server
            AdfCustomEvent.queue(suggestPopup, "suggestServerListener",
            // Send single parameter
                filterString : valueStr
true);
    var inputField = evt.getSource();
    if (window["timer" + inputField.getClientId()]) {
        window.clearTimeout(window["timer" + inputField.getClientId()]);
    window["timer" + inputField.getClientId()] = window.setTimeout(realHandleKeyUpOnSuggestField, 500);
}This works fine in FireFox and Safari and Chrome, but not in IE.
The following error occurs:
>
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Timestamp: Thu, 13 May 2010 20:27:33 UTC
Message: Member not found.
Line: 6034
Char: 2
Code: 0
URI: http://127.0.0.1:7101/NC2DealerPartOrderTracking-ViewController-context-root/afr/partition/ie/default/opt/core-SHEPHERD-PS1-9296.js
>
When I debugged through, it seems like the event's getKeyCode() doesn't exist. I'm assuming it's something to do with scope for IE working different than FireFox.
I realize this is more JavaScript question, but I'm wondering if anyone got something like that to work on ADF. As far as I know, there's no other way besides using JavaScript and IE doesn't seem handle scoping very well. I can't use a global parameter because I'm using this in a component and you can have multiple components in a page.

Clicking the link to the .PDF launches the file in a browser (same gimped toolbar for both IE 8 and Firefox). When I right-click the .PDF toolbar in-browser, I have access to the following toolbars:
File
Find
Page Display
Page Navigation
Select and Zoom
Tasks
I don't see anything for Commenting / Annotation.

Similar Messages

  • "Auto completion" doesn't work in the new ABAP editor

    Hi Gurus,
    It is quite strange that the "auto completion" doesn't work for me in my new laptop. After I press "ENTER", it starts a new line.
    Any body know this?
    Thanks a lot.

    Hello,
    Use "Tab" instead of "ENTER"

  • Auto Completion Doesn't Work in Eclipse 3.1

    Hello
    I am working with Eclipse 3.1 in Linux Envirnment.
    I had update my plugin for FreeMaker and Beanshell.
    I had imported my desired classes, still class names are not coming automatically.
    I am unable to write program on Eclipse.
    reply soon
    Thanking you,
    Bisweswar Sahu.

    This has nothing to do with JSP, also nothing with "auto completion doesn't work".
    You need to add the classes to the 'build path' of the project, then you can import them in your code.

  • My Norton Internet Security, Passwrd and user name auto complete doesn't work in Firefox 4

    Since updating to Firefox 4 my user name and password auto complete form Norton Internet security doesn't work.

    Symantec need to update their Firefox add-ons so that they are compatible with Firefox 4. They have indicated that for Norton 360 they plan to release an update to Norton 360 to support Firefox 4 in early May - http://us.norton.com/support/kb/web_view.jsp?wv_type=public_web&docurl=20100720113635EN&ln=en_US
    I do not know about the time scale for updates for other Norton products. Pending the update by Symantec, if you want to use the Norton add-ons you will need to downgrade to Firefox 3.6.
    To downgrade to Firefox 3.6 first uninstall Firefox 4, but do not select the option to "Remove my Firefox personal data". If you select that option it will delete your bookmarks, passwords and other user data.
    You can then install the latest version of Firefox 3.6 available from http://www.mozilla.com/en-US/firefox/all-older.html - it will automatically use your current bookmarks, passwords etc.
    To avoid possible problems with downgrading, I recommend going to your profile folder and deleting the following files if they exist - extensions.cache, extensions.rdf, extensions.ini, extensions.sqlite and localstore.rdf. Deleting these files will force Firefox to rebuild the list of installed extensions, checking their compatibility, and reset toolbar customizations.
    For details of how to find your profile folder see https://support.mozilla.com/kb/Profiles

  • Mail auto-completion doesn't work

    In Mail prior to Mountain Lion, I just had to start typing an email address and the app would suggest addresses either from my address book, or from the history of people I wrote to or who wrote to me. If I copied and address and pasted it in a new mail, it would appear in blue if that person ever wrote to me (or I wrote to them), very useful to know if you're writing to someone for the first time - especially when you run a small business from home.
    That's gone in ML, if I start typing an address, the only suggestions are taken from my address book. Is it a "new feature" or a bug?

    The feature isn't gone, it's just likely that your history from which Mail pulled from was reset with the upgrade.  I did a clean install but I do know that once I send an email to someone and then I start to enter their name again in Mail it automatically fills it out in blue like you are talking about.

  • [svn:osmf:] 15000: Fix for FM-447 : Adding CuePoint in TemporalFacet event listeners doesn't work

    Revision: 15000
    Revision: 15000
    Author:   [email protected]
    Date:     2010-03-24 14:01:02 -0700 (Wed, 24 Mar 2010)
    Log Message:
    Fix for FM-447 : Adding CuePoint in TemporalFacet event listeners doesn't work
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-447
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/metadata/TimelineMetadata.as

  • [svn:osmf:] 14975: Fix for FM-447 : Adding CuePoint in TemporalFacet event listeners doesn't work

    Revision: 14975
    Revision: 14975
    Author:   [email protected]
    Date:     2010-03-23 17:04:43 -0700 (Tue, 23 Mar 2010)
    Log Message:
    Fix for FM-447 : Adding CuePoint in TemporalFacet event listeners doesn't work
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-447
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/metadata/TimelineMetadata.as

  • After update to iOS6.0.1; auto-lock doesn't work

    After update to iOS6.0.1; auto-lock doesn't work at all

    Which autolock?  Camera?  Calendar?  Game Center?

  • During video recording the auto focus doesn't work automatically!i must have a tap on the display for to use the autofocus! Ihave an iphone 4s

    during video recording the auto focus doesn't work automatically!i must have a tap on the display for to use the autofocus! Ihave an iphone 4s

    I know.  Same issue here.  When I'm not recording but have the video camera on, the autofocus works fine.  As soon as I tap the record button and recording starts, the focus is locked until I tap on the screen to focus.  I haven't used the camera all that much because of this problem.

  • IPhone sensor ( auto rotate ) Doesn't work !!

    Hello
    I bought an Iphone 4S-16G last week and I understood that on of my Iphone sensor ( auto rotate ) doesn't work it means when I landscape my iphone my messages or photos or in a games doesn't rotate , Now what should I do ?
    I already restored and turned off and turned on and checked rotation option in portrate oriention by double clicking but it didn't work .
    Please Help me .

    oops my bad, you did say exactly that you had tried that. Sorry. Also you already Restored too. Only thing I could add, is to Restore as New iPhone, at end of Restore when prompted Set Up as New iPhone. And then see if better. Anyway, iPhone 4S has full Warranty, make Genius Reservation and take iPhone to Apple for resolution.

  • [SOLVED] xfce 4.8 = auto mount doesn't work at boot

    Hi
    I installed arch linux with xfce as DE. auto mount doesn't work at boot. I read the wiki about policykit and I have
    ck-launch-session
    at my .xinitrc but still no luck. I have dbus running as a daemon and my user belong to appropriate groups (storage and ...)
    I don't want to use auto mount rules instead of xfce auto mount.
    thanks in advanced
    Last edited by sasy360 (2011-07-02 03:16:35)

    Jodell wrote:Do you have gvfs installed?
    Oh that was all. thanks!
    Did you read the wiki entry for Xfce?
    yes but it did not mention to install gvfs.

  • Apache Sling JCR Resource Resolver doesn't work for the anchor tags which is been rendered through j

    Certainly I realized that Apache Sling JCR Resource Resolver doesn't work for the anchor tags which is been rendered through jquery or javascript.
    e.g.
    In Felix Console , in Apache Sling JCR Resource Resolver configuration I have added following mapping.
    /content/myproject/-/
    So If any anchor tag is there like <a href="/content/myproject/en.html"> click me </a> then it will be mapped to "/en.html" automatically.
    But the problem is there in following scenario.
    I have an anchor tag as follows.
    <a href="#" id="test"> click here </a>
    And I am assigning the href to anchor through JQUERY.
    <script>
    $("#test").attr("href","/content/myproject/en.html");
    </script>
    Ideally this should have been mapped to "/en.html".
    But it is not mapping to "/en.html". It still shows "/content/myproject/en.html".
    How to resolve this.
    Thanks,
    Sai

    In a servlet you have access to the resourceResolver so if you know which attributes contain links then it's relatively easy to apply resourceResolver.map to those links.
    Your challenge is clearly how do you know which attributes are links and which aren't. Its is the same challenge that makes parsing the response and rewriting it on the way out difficult - the JSON doesn't have any semantic meaning so how do identify which attributes require rewriting. There really is no good answer ot that question in my experience - all the options have down sides.
    Create some convention - all attributes matching this pattern X get mapped before being converted to JSON (could be attributes whose name ends in link, or it could a convention applied to the value of the attribute - if the attribute is a string that starts with /content apply the resource resolver mapping. In this case you have train your developers to follow this convention which is the down side.
    Create some configurable list of attribute names that require mapping. This is brittle, requires training and is easy to break.
    Implement a client side version of the resource resolver mapping. It wouldn't be as full proof as server side mapping (because that takes into account but you could make it work for simple logic like stripping of /content/site/en. If ou are just trying to solve the simple version of this issue - stripping off the top of the repository path this might be your best option.
    Not worry about it and set up Apache 301 redirects that catch any long URLs and redirect them to short URLs (so configure apache to look for any URL matching /content/site/en and strip off /content/site/en and do a 301 redirect to the shortened URL. You end up with a lot of extra HTTP request because of all the 301s but it would work (I wouldn't recommend this option - but it is possible).

  • Central Autoreaction Method doesn't work for NW 7.10 in SolMan 7.01

    Hello!
    The central autoreaction method doesn't work for the satellite system
    NW 7.10. For systems with kernel releases 4.6D, 640, 700 this method
    works fine and e-mail alerts are coming.
    The configuration steps I've checked:
    1. Configured SCOT. The mail_send job executes every 5 minutes.
    2. Background dispatching job is released: SAP_CCMS_MONI_BATCH_DP (In
    central CEN/000/DDIC and satellite system SAT/000/DDIC)
    3. Central dispatching job is released: SAP_CCMS_CENSYS_DISPATCHER
    (Only in central system CEN/000/DDIC)
    4. The sapccm4x-agent registered as web service within CEN using
    Create Remote Monitoring for NW 7.10:
    Connection test to SAPCCM4X.<satellite_host>.00 was performed successfully
    5. Created a new autoreaction method by copying method
    CCMS_OnAlert_Email_V2 to the own Z_CCMS_Email_Alert_CEN:
    Function Module - SALO_EMAIL_IN_CASE_OF_ALERT_V2
    Execute Method on Any Server and Only in Central System, triggered by
    CCMS agents
    SENDER (EMAIL_USER) exists in CEN/000 , RECEPIENT - <distr list
    SAP_BASIS in CEN/000>, RECIPIENT-TYPEID - C
    6. Got MTE Classes from NW 7.10 satellite system and assigned this method
    Z_CCMS_Email_Alert_CEN to an MTE-class CCMS_ORAucPSAPSR3 for NW 7.10
    satellite system. The alert is red right now.
    7. The mail_send job doesn't send anything, in SCOT there are no
    sending orders.
    8. Autoreaction status on this alert in CEN in RZ20 - Sent to CEN.
    CEN_CHECKED.
    9. The alert status in RZ20 in CEN - ACTION_REQUIRED. If I execute it
    in manual the alert status changes to ACTIVE, but no email and no
    messages in sending orders in SCOT.
    Please help me to solve this issue.
    Thank you!

    Hi,
    Since you are using RECIPIENT-TYPEID =C i.e. General distribution list, pls ensure to have shared type of list created in SBWP.
    Also pls verify your SCOT configutaion , if apropriate address area i.e. *@abc.com
    Also one point to note that even if you trigger auto reaction method manually via RZ20 , pls check if alert is listed in SOST.
    if yes , that means there is problem in either SCOT configuration or distribution list.
    If alert is not appearing in SOST , that means you need to check auto reaction method parameters;
    Z_CCMS_OnAlert_Email_V2 , here check release section if Auto reaction execution method is checked.
    Regards,
    Rupali

  • T.code S_ALR_87012177. It doesn't work for histories: is there a solution?

    Hi All
    Rif t.code S_ALR_87012177. This report requires, for working, the flag in th filed "Payment history record" in the tab "payment transactions" of customers master data.
    I've adjourned the master data of the customers putting in the field "Payment history record". But the report doesn't work for histories. Is there a program which make the report working for histories too?
    Thanks
    Gandalf
    Edited by: Umberto Gandalf on Mar 23, 2009 12:02 PM

    Hi Suresh,
    I have one issue with same report
    when i seen the report there are two  arrears days are showing to corresponding to the months Feb
    as per the Report S_ALR_87012177 help  following below
    Arrears in days
    The average days in arrears are determined as follows: Every
    incoming payment in the periods concerned is multiplied by its days
    in arrears. These amounts are added together and then divided by the
    total amount from all the incoming payments. This process ensures
      that the days in arrears are weighted by the payment amount
    but for February month there are 9 payments on one customer  and when checked in FBL5N report
    there are no Arrears days on each payment document but in the report "customer history ' there showing  2 days as arrears under " payments with Cash discount .Arrears"
    User has doubt how this report is working to show the Arrears days
    Are there any Formula  , can you please advise me
    if you  knows well   about this
    Regards
    Ranamka

  • When I double click home for audio playback doesn't work for movies since I synced it yesterday Why?

    When I double click the home button the audioplayback doesn't work for movies,  it did before I added and synced some items yesterday anybody know why?

    Jeanlewane wrote:
    Why, When I double click the home button and hold down the icon waiting for the red x to appear, it doesn't.?
    How to Close Apps
    Double Tap the Home Button... Then swipe the App (not the icon) Upwards... Tap the Home Button when finished.
    From Here  >  http://support.apple.com/kb/HT4211
    NOTE:  You cannot delete any pre-installed iOS app.

Maybe you are looking for