is there any body out there? :(

On 23 ene, 10:34, eulerss <[email protected]> wrote:
> i have a problem :( this is my error:
>
> "Stack overflow at line 1926"
>
> this error appears when i load for fist time the page,for example, if
> i type "P", appears, but then, not any more, and the most important
> thing is that my autocomplete function is not working, here is my
> simple code that i take from the link that ColinFine gave me:
>
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html;
> charset=windows-1252">
> <title></title>
>
> <script type="text/javascript" src="js/prototype.js"></script>
>
> <script type="text/javascript" src="js/scriptaculous.js"></script>
>
> <body>
>
>                         <input type="text" id="autocomplete" 
> name="autocomplete_parameter"/
>
>                         <div id="autocomplete_choices"></div>
>
>                         <script type="text/javascript">
>                         new Ajax.Autocompleter("autocomplete", 
> "autocomplete_choices", "./
> li.php", {});
>                         </script>
>
> </body>
> </head>
> </html>
>
> i think that my code is correct, i have two id's, one of the input and
> other of the div element, and in the Ajax.Autocompleter i'm using this
> id's, and my file li.php that contains my list, this is the simple
> code of mi li.php file:
>
> <?php
> echo "<ul>
>    <li>Perkins Justin</li>
>    <li>Perkins Tim</li>
>    <li>Populate</li>
>    <li>Persons</li>
>    <li>People</li>
>    <li>Post</li>
> </ul>";
>
> ?>
>
> any ideas?
>
> thanks in advance
>
> eulerss
>
> On 23 ene, 09:26, eulerss <[email protected]> wrote:
>
>
>
> > Thanks Colin, i'm reading the link, if i continue with problems, i'll
> > post here
>
> > eulerss
>
> > On 23 ene, 04:34, ColinFine <[email protected]> wrote:
>
> > > On Jan 22, 11:18 pm, eulerss <[email protected]> wrote:> please help, 
> > > i was seeing one example but i have some doubts
>
> > > > 1) in the principal file
>
> > > > <script src="lib/prototype.js" type="text/javascript"></script>
> > > > <script src="src/scriptaculous.js" type="text/javascript"></script>
> > > > <script src="src/unittest.js" type="text/javascript"></script>
>
> > > > its necessary to add the unittest.js?? (sorry i repeated, im noob in
> > > > this)
>
> > > No. I've never included it.
>
> > > > 2) if i used, for instance response.php in order to get all values,
> > > > whats the correct form?
> > > > i mean, can i used response.php simple like this
>
> > > > <?php
> > > > echo "<div>
> > > > <ul>
> > > > <li>A</li>
> > > > <li>B</li>
> > > > <ul>
> > > > </div>";
> > > > ?>
>
> > > Don't send the <div>, just the <ul>  [1]
>
> > > > 3)whats the form when i'm calling the funcion ajax.autocompleter?
>
> > > > <script type="text/javascript" language="javascript"
>
> > > >                 new Ajax.Autocompleter('id','id','response.php');
>
> > > No, you need to supply two different elements (or id's) - first the
> > > <input> field, and then the <div> in which it is to put the list.
> > > Please read [1] carefully.
>
> > > [1]:http://wiki.github.com/madrobby/scriptaculous/ajax-autocompleter,
> > > section 'Sever return'.
>
> > > Colin- Ocultar texto de la cita -
>
> > - Mostrar texto de la cita -- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to