I have two nearly identical auto_complete inputs. One uses the
paramName: ''external_sample_id'' and the other uses paramName:
disease. The one with the long paramName never returns a result to the
auto_complete div. I have checked that the server is returning a ul
list for each query and it does. I have also replaced JUST the
pramName in the one that is not working with a shorter name. Any
ideas?
Thanks
Here is the code:
<html>
<head>
<title>Oncexpress:filter</title>
<style type="text/css">
div.auto_complete {
width: 100px;
background: #fff;
display: inline;
}
div.auto_complete ul {
border: 1px solid #888;
margin: 0;
padding: 0;
width: 100%;
list-style-type: none;
}
div.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>
<script src="./include/prototype.js"
type="text/javascript"></
script>
<script src="./include/scriptaculous.js"
type="text/javascript"></
script>
</head>
<body>
<form id="rayBanData" method="POST">
<p>
<h5>External Sample ID</h5>
<input id="search_external_sample_id"
autocomplete="off" size="40"
type="text" value=""/>
<div id="search_external_sample_id_auto_complete"
class="auto_complete"></div>
<script type="text/javascript">
//<![CDATA[
new Ajax.Autocompleter(''search_external_sample_id'',
''search_external_sample_id_auto_complete'',
"./ajaxsolrsearch.action",
{paramName: ''external_sample_id''});
//]]>
</script>
<p>
<h5>Disease</h5>
<input id="search_disease" autocomplete="off"
size="40"
type="text" value=""/>
<div id="search_disease_auto_complete"
class="auto_complete"></
div>
<script type="text/javascript">
//<![CDATA[
new Ajax.Autocompleter(''search_disease'',
''search_disease_auto_complete'',
"./ajaxsolrsearch.action",
{paramName: ''disease''});
//]]>
</script>
</body>
</html>
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---
Same results if you remove all the css. So it is not a css issue.
<html>
<head>
<script src="./include/prototype.js"
type="text/javascript"></
script>
<script src="./include/scriptaculous.js"
type="text/javascript"></
script>
</head>
<body>
<form id="rayBanData" method="POST"
action="./">
<p>
<h5>External Sample ID</h5>
<input id="search_external_sample_id"
autocomplete="off" size="40"
type="text" value=""/>
<div id="search_external_sample_id_auto_complete"
class="auto_complete"></div>
<script type="text/javascript">
//<![CDATA[
new Ajax.Autocompleter(''search_external_sample_id'',
''search_external_sample_id_auto_complete'',
"./ajaxsolrsearch.action",
{paramName: ''external_sample_id''});
//]]>
</script>
<p>
<h5>Disease</h5>
<input id="search_disease" autocomplete="off"
size="40"
type="text" value=""/>
<div id="search_disease_auto_complete"
class="auto_complete"></
div>
<script type="text/javascript">
//<![CDATA[
new Ajax.Autocompleter(''search_disease'',
''search_disease_auto_complete'',
"./ajaxsolrsearch.action",
{paramName: ''disease''});
//]]>
</script>
</form>
</body>
</html>
On Mar 25, 1:44 pm, mdjones71
<mdjone...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I have two nearly identical auto_complete inputs. One uses the
> paramName: ''external_sample_id'' and the other uses
paramName:
> disease. The one with the long paramName never returns a result to the
> auto_complete div. I have checked that the server is returning a ul
> list for each query and it does. I have also replaced JUST the
> pramName in the one that is not working with a shorter name. Any
> ideas?
>
> Thanks
>
> Here is the code:
>
> <html>
> <head>
> <title>Oncexpress:filter</title>
> <style type="text/css">
> div.auto_complete {
> width: 100px;
> background: #fff;
> display: inline;
> }
>
> div.auto_complete ul {
> border: 1px solid #888;
> margin: 0;
> padding: 0;
> width: 100%;
> list-style-type: none;
> }
>
> div.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>
> <script src="./include/prototype.js"
type="text/javascript"></
> script>
> <script src="./include/scriptaculous.js"
type="text/javascript"></
> script>
> </head>
> <body>
>
> <form id="rayBanData" method="POST">
> <p>
> <h5>External Sample ID</h5>
>
> <input id="search_external_sample_id"
autocomplete="off" size="40"
> type="text" value=""/>
> <div id="search_external_sample_id_auto_complete"
> class="auto_complete"></div>
> <script type="text/javascript">
> //<![CDATA[
> new
Ajax.Autocompleter(''search_external_sample_id'',
>
''search_external_sample_id_auto_complete'',
> "./ajaxsolrsearch.action",
> {paramName: ''external_sample_id''});
> //]]>
> </script>
>
> <p>
> <h5>Disease</h5>
>
> <input id="search_disease" autocomplete="off"
size="40"
> type="text" value=""/>
> <div id="search_disease_auto_complete"
class="auto_complete"></
> div>
> <script type="text/javascript">
> //<![CDATA[
> new Ajax.Autocompleter(''search_disease'',
> ''search_disease_auto_complete'',
> "./ajaxsolrsearch.action",
> {paramName: ''disease''});
> //]]>
> </script>
> </body>
> </html>
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---
Here is an even simpler version. The disease search works fine but the
external_biosample_id does not. Both work fine if I go directly to
ajaxsorsearch.action
<html>
<head>
<script src="./include/prototype.js"
type="text/javascript"></
script>
<script src="./include/scriptaculous.js"
type="text/javascript"></
script>
</head>
<body>
<form id="form" method="POST" action="./">
<h5>Disease</h5>
<input id="search_disease" autocomplete="off"
size="40"
type="text" value=""/>
<div id="search_disease_auto_complete"></div>
<script type="text/javascript">
//<![CDATA[
new Ajax.Autocompleter(''search_disease'',
''search_disease_auto_complete'',
"./ajaxsolrsearch.action",
{paramName: ''disease''});
//]]>
</script>
<h5>External Sample ID SMall</h5>
<input id="search_sample" autocomplete="off"
size="40" type="text"
value=""/>
<div id="search_sample_auto_complete"></div>
<script type="text/javascript">
//<![CDATA[
new Ajax.Autocompleter(''search_sample'',
''search_sample_auto_complete'',
"./ajaxsolrsearch.action",
{paramName: ''external_biosample_id''});
//]]>
</script>
</form>
</body>
</html>
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---