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


--~--~---------~--~----~------------~-------~--~----~
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