×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    13

    Question OnKeyUP event not getting triggered when using Mini-Qwerty/Handwriting mode in 5800

    Hi friends,

    I am designing a widget which has a textbox in it. Whenever the user types in something inside the textbox, a javascript method is invoked(onKeyUp event). This works fine with Full-Qwerty keypad. But with Mini-Qwerty and Handwriting mode, this doesnt work. However it works while using backspace(<--) in these two modes.


    Code:
    <input type="text" id="text1" size="25" name ="searchBox" onKeyUp="showResult(this.value)"/>
    </input>

    Since the widget involves livesearch mechanism, i require the onKeyUp event to be triggered mainly in Mini-Qwerty/Handwriting Mode.

    Please Help.

  2. #2
    Registered User
    Join Date
    Nov 2007
    Posts
    13

    Re: OnKeyUP event not getting triggered when using Mini-Qwerty/Handwriting mode in 58

    I have used a self timer to fix this issue.. couldnt get ny better solution. If someone has it please share.

    Code:
    function timerMethod()
    {
    setTimeout ( "timerMethod()", 500 );
    }

  3. #3
    Registered User
    Join Date
    May 2009
    Location
    Helsinki, Finland
    Posts
    5

    Re: OnKeyUP event not getting triggered when using Mini-Qwerty/Handwriting mode in 58

    It does register keydown and keypressed events and I've fixed the issue like so (using jQuery, but you can do it without it as well):

    Code:
    // element with id "criteria" is a input element of type "text"
    $('#criteria').bind("keydown", function(eve){
    	var me = $(this);
    	var val = me.attr("value");
    	if(eve.charCode != 8){ // BACKSPACE
    		var c = String.fromCharCode(eve.charCode);
    		val +=  c;
    	}else{
    		val = val.substr(0, val.length - 1);
    	}
    }
    Last edited by forssto; 2009-05-06 at 14:20. Reason: add code tags

Similar Threads

  1. Nokia 5800 XpressMusic accerated video decoders
    By Gingah in forum General Development Questions
    Replies: 4
    Last Post: 2009-07-06, 17:44
  2. why I can't send the key "1" event
    By songlinhe in forum Symbian
    Replies: 3
    Last Post: 2007-05-30, 08:05
  3. CLogEvent problem
    By silviuccia in forum Symbian
    Replies: 2
    Last Post: 2006-12-22, 15:28
  4. Replies: 6
    Last Post: 2004-12-22, 05:24
  5. Simulating Long Key Press event in debugging mode...
    By empeegee in forum Multimodecards
    Replies: 1
    Last Post: 2004-12-18, 06:31

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×