Ok, I have it kind of working now, but not quite. In the javascript file I
have something like this:

     $("suggest ul li").mouseover(function(){
                    $("suggest ul li").removeClass("hover");
                    $(this).addclass("hover");
                      });
     $("suggest ul li").click(function(){
                    var value =$(this).html();
                                    $("#input").val(value);
                    $("#suggest ul li").remove();

                      });

which is suppose to allow the user to click on the <li> item and put it in
the input box.

And according to the what I found on the web, I need to add this to the
style page:
.hover(
background-color:#006699;
cursor:pointer;
)

But I think that the html page is not picking up on the hover style in the
section where the list of possible authors is displayed.  I had a similar
situation where I was suppose to put a style for the ul tag, and it was not
working so I added it to the output that returns the values to display as
an inline style.

So in summary, .hover is not being picked up from styles.css.  As an
example, this is what I return when a user enter Bl, for example, in the
input box:

Content-Type: text/plain; charset=ISO-8859-1

<ul style="list-style:none;
background-color:#CFCFCF;
height:auto;
list-style:none outside none;
margin-left:0;
margin-top:0;
padding-left:0;
text-align:left;
width:146;">
<li class="list">Blome, Sander.</li><li class="list">Black, J. R. (James
R.)</li><li class="list">Black, J. R. (James R.)</li><li
class="list">Black, J. R. (James R.)</li><li class="list">Blass,
Andreas</li><li class="list">Black, J. R. (James R.)</li><li
class="list">Black, J. R. (James R.)</li><li class="list">Black, J. R.
(James R.)</li><li class="list">Black, J. R. (James R.)</li><li
class="list">Blankenship, Victor D.</li></ul>

I can see the options on my html page as I expect them, but I just can't
click on one of them.


On Tue, Aug 7, 2012 at 2:41 PM, helix84 <[email protected]> wrote:

> On Tue, Aug 7, 2012 at 8:32 PM, Jose Blanco <[email protected]> wrote:
> > Don't you have to enable it some how.  I was reading this:
> >
> >
> http://dspace.2283337.n4.nabble.com/Re-dspace-solr-facets-config-autocomplete-working-but-zero-search-results-td3574599.html
>
> I think they were just fine-tuning it. I understand you still don't
> have it working at all. Like someone already pointed out - you need to
> change the url parameter of the ajax object to the Solr query (which
> you will find when you dig on the advanced search page I mentioned).
> Try it and let me know if you're stuck and what the problem is (always
> CC dspace-tech).
>
> Regards,
> ~~helix84
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to