Hi everybody,
I've got a problem when using Ajax.Autocompleter together with new
Effect.Appear.
I'm using new Effect.Appear to show a layer (a div) that includes a
form on it. The input in this form is an AutoCompleter field (actually
I'm using scriptaculous under Django).
When I scroll down the web page, and then clik on a link, it makes
appear the layer. As I start writing in the input, I get a list of
suggestions. And then, when I scroll down/up with the down/up arrows,
it actually moves into the list of suggestions, but the browser's
scroller goes up or down also, which makes no sense.
I tried to capture the event onkeypress and remove the event's effects
when the pressed key was up-arrow/down-arrow.
function handleKeyPress(event){
if (event.keyCode == 38 || event.keyCode == 40){
event.returnValue = false;
event.cancel = true;
event.preventDefault();
//event.cancelBubble = true;
return false;
}
return true;
}
...but it changed nothing.
Scenario:
- Firefox 3
- Prototype 1.6.0.2
- Scriptaculous 1.8.1
- Django 0.96
Do you know what's going on? What can I do?
Thanks a lot in advance,
Moha.
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---