Hi Perryn.
I have been sitting on this autocomplete problem for over a month now.
I have the problem that the minute the user scrolls up or down with
the down or up keyboard key then IE scrolls the whole page.
Firefox does not and works correctly.
I unfortunatly need to use the scroll because I have to display a
large amount of data.
This is what I have in my controls.js
################################################################################
render: function() {
if(this.entryCount > 0) {
for (var i = 0; i < this.entryCount; i++) {
this.index==i ?
Element.addClassName(this.getEntry(i),"selected") :
Element.removeClassName(this.getEntry(i),"selected");
if (this.index == i) {
var element = this.getEntry(i);
element.scrollIntoView(false);
}
}
if(this.hasFocus) {
this.show();
this.active = true;
}
} else {
this.active = false;
this.hide();
}
},
################################################################################
This is what I have in my CSS
################################################################################
<style type="text/css">
div.auto_complete {
height: 100px;
width: 100px;
background: #fff;
overflow: scroll;
border: 1px solid #888;
}
div.auto_complete ul {
margin:0;
padding:0;
width:100%;
}
div.auto_complete ul li {
margin:0;
padding:3px;
}
div.auto_complete ul li.selected {
background-color: #ffb;
cursor:pointer;
}
div.auto_complete ul strong.highlight {
color: #800;
margin:0;
padding:0;
}
</style>
################################################################################
Please can you help me with this scroll problem in IE.
Thank you for any tim and effort as I am really stuck.
Regards
Uncle Mike
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---