Hi, i'm using protoype (tried  1.6.0.3 and 1.6.0.2 ) and i found a
problem using ajax.updater with FF (IE 7 WORKS).
The problem is using the onkeydown event of a text box.
Trapping the keyCode (enter) , i call the doSearch function

 function doSearch()
    {
        new Ajax.Updater({success: 'pnl_results', failure: 'notice'},
'frm_Simple_Results.aspx?type=1&search='+escape(text)
+'&indexnr='+indexnr, { method: 'get' });

    }

The same function if used by a onclick="doSearch();" event of an image
works perfectly.(FF and IE)

Hitting the ENTER with FF , the function is fired, but the results are
not displayed in the pnl_results DIV.

These is the trapping function

function fnTrapKD(event)
    {
      if (event.keyCode == 13){
       event.returnValue=false;
       event.cancel = false;
        doSearch();

     }
    }

Any suggestion?





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to