I finally got the autocomplete to open the list, but it does not work in FF, only works with a php file as the url (not the exact same data in .xml), the list does not scale down at all when you add more letters, and it will also show the entire list no matter what is in the text field. this is my code: <input autocomplete="off" id="contact_name" name="contact[name]" size="30" type="text" value="" /> <div class="auto_complete" id="contact_name_auto_complete"></ div><script type="text/javascript">new Ajax.Autocompleter(''contact_name'', ''contact_name_auto_complete'', ''xml3.php'', {minChars: 2})</script> www.parkereye.com/eye Why does it only work if my url is file.php which is a file that creates an XML from my DB? - it will not work if I create the XML by hand and use ''xml.xml'' as the url. Why? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
zio budda
2007-Mar-28 22:48 UTC
Re: autocomplete not working in FF, and not redefining list
I think that is a "problem" (not a real problem) of your web server. Try this: create a file xml3.php that contains only this: <? echo "YOUR XML STRUCTURE OR THE XML.XML FILE"; ?> It works ? If yes: ok, your web server does not understand xml file (mime type); if no: ok, I have made a wrong answer. M. -- Michel ''ZioBudda'' Morelli michel-0oFb7YEmpcLk1uMJSBkQmQ@public.gmane.org http://www.ziobudda.net ICQ: 58351764 http://www.phpbook.it FAX: 0291390660 http://www.ajaxblog.it TEL: 3939890025 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
apparker
2007-Apr-04 20:02 UTC
Re: autocomplete not working in FF, and not redefining list
yep, it worked as php, do I have to specify something in the XML file header to show that it is XML? On Mar 28, 6:48 pm, "zio budda" <ziobu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I think that is a "problem" (not a real problem) of your web server. Try > this: create a file xml3.php that contains only this: > > <? > echo "YOUR XML STRUCTURE OR THE XML.XML FILE"; > ?> > > It works ? If yes: ok, your web server does not understand xml file (mime > type); if no: ok, I have made a wrong answer. > > M. > > -- > Michel ''ZioBudda'' Morelli mic...-0oFb7YEmpcLyWu+eSqVW3A@public.gmane.org://www.ziobudda.net ICQ: 58351764http://www.phpbook.it FAX: 0291390660http://www.ajaxblog.it TEL: 3939890025--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---