Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
About that auto-complete select box ...
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
deeps  
View profile  
 More options Jan 19 2007, 4:43 pm
From: "deeps" <deep...@gmail.com>
Date: Fri, 19 Jan 2007 21:43:53 -0000
Local: Fri, Jan 19 2007 4:43 pm
Subject: About that auto-complete select box ...
Cross posted from the "RoR:Talk" board...

This is more a CSS question than a Rails one.

In AWDwR, in the script.aculo.us section talking about auto-completion,
it says

"It is worth highlighting that there is no JavaScript to enable the
arrow-up, arrow-down, highlight behavior of the list. It is enough to
provide the stylesheet above; it turns out that all <ul> tags support
that behavior (in relatively modern browsers) and just need styles to
show off the changing state."

So am I right in believing that the following .html file would display
something like a selection box, when arrow-up, arrow-down and mouse
hover events happen? Doesn't seem to. All other CSS select boxes on the
Web have at least a :hover definition, and a little bit of JavaScript
for IE.

<html>
<!--DTD stuff -->
<head>
<style>
div.auto_complete {
 width: 350px;
 background: #fff ;

}

div.auto_complete ul {
 border:1px solid #888 ;
 margin:0;
 padding:0;
 width:100%;
 list-style-type:none;

}

div.auto_complete ul li {
 margin:0;
 padding:3px;

}

div.auto_complete ul li.selected {
 background-color: #ffb ;

}

div.auto_complete ul strong.highlight {
 color: #800 ;
 margin:0;
 padding:0;

}

</style>

<body>
<div class="auto_complete">
<ul>
<li>one</li>
<li>two</li>
<li>three</li>
</ul>
</div>
</body>
</html>


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google