Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Apr 2012
    Location
    St. Louis, MO
    Posts
    985
    Thanks
    7
    Thanked 101 Times in 101 Posts

    Question Chained process - works in FF; semi-works in Chrome; does not work at all in IE

    Hello, everyone.

    I'm using jQuery to chain a process of events that is working flawlessly in FireFox12, halfway works in Chrome, and does not work at all in IE8.

    Code:
    $('form #submitBtn')
        .keydown(
            function(e){
                if(e.which==37||e.which==39){$('input[name=indexType]:eq('+currentSelected+')').focus().trigger({type:'keypress',which:e.which})}
                }
            );
    Basically the submitBtn will gain focus on page load. IF the left or right arrow key is pressed, put focus on the checked radio button, perform that key press (left or right), which the onchange of the radio buttons will put focus back on the submitBtn.

    Works in FF12. In Chrome the arrow key has to be pressed twice before it works. This does not work, at all, in IE8.

    Honestly, I don't care if it doesn't work in IE. But if I can get it to work in FF and Chrome (without having to press the key twice), I'm happy.

    Anyone see what part is incorrect?

    Thank you,
    ^_^

    If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
    *
    The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".

  • #2
    Regular Coder
    Join Date
    Apr 2012
    Location
    St. Louis, MO
    Posts
    985
    Thanks
    7
    Thanked 101 Times in 101 Posts
    Anyone?
    ^_^

    If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
    *
    The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".


  •  

    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
    •