That fixed it for me too, thanks.  I wonder why in the tutorial they
added the double quotes like that?

On May 22, 11:11 am, ykaerflila <ykaerfl...@gmail.com> wrote:
> check a typo.  <div id="player_sugestions">  your missing a "g" in
> there.
>
> I changed that along with the following and it works fine for me
>
>   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /
>
>                 <script src="../javascripts/prototype.js" type="text/
> javascript"""></
> script>
>                 <script src="../javascripts/scriptaculous.js"
> type="text/
> javascript"""></script>
>
> changed to
>   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /
>
>   <script src="../javascripts/prototype.js" type="text/javascript"></
> script>
>   <script src="../javascripts/scriptaculous.js" type="text/
> javascript"></script>
>
> On May 22, 5:47 am, MIGhunter <ad...@botdls.com> wrote:
>
> > I bought "Practical Prototype and Script.aculo.us" and I'm going thru
> > the tutorial on autocompleters.  It is really basic but doesn't work
> > for some reason.  Wondering if anyone has any suggestions or has used
> > this before.  You can see looking below that it is loading the
> > javascript elements.  For some reason it is loading with
> > "autocomplete: off"  If I change it to on in firebug, it still doesn't
> > work.  Here is the code for the file:
> > [code]
> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> >         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> > <html>
> >         <head>
> >                 <title>Chapter 12</title>
> >                 <meta http-equiv="Content-Type" content="text/html; 
> > charset=utf-8" /
>
> >                 <script src="../javascripts/prototype.js" 
> > type="text/javascript"""></
> > script>
> >                 <script src="../javascripts/scriptaculous.js" type="text/
> > javascript"""></script>
> >                 <script type="text/javascript">
> >                         document.observe('dom:loaded', function() {
> >                                 new Autocompleter.Local('player_name', 
> > 'player_suggestions',
> >                                 ['James Polk', 'James Buchanan', 'Franklin 
> > Pierce',
> >                                 'Millard Fillmore', 'Warren Harding', 
> > 'Chester Arthur',
> >                                 'Rutherford Hayes', 'Martin Van Buren']);
> >                         });
> >                 </script>
> >         </head>
> >         <body>
> >                 <input type="text" name="player_name" id="player_name" 
> > size="30" />
> >                 <div id="player_sugestions"></div>
> >         </body>
> > </html>
> > [/code]
> > When I open it up with firebug, here is what I see:
> > [img]http://migcfdesign.com/ajax/chapter12/ac.jpg[/img]
>
> > Sorry had to edit it, didn't realize FB would copy the entire file
> > including the JS files.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to