yep, its not var as var, actually the name is different to var, i only use var as an example, alex can u help me with the autocompleter?, some ideas or one example, i was looking for a similar post with autocomplete function, but i dont understand to much, i need some for newies, thanks in advance
On 22 ene, 01:26, "Alex Mcauley" <[email protected]> wrote: > for a start i wouldnt use var as a var > > in this line > > var = transport.responseText; > ... > > try > > var foo=transport.responseText; > > instead > > > > ----- Original Message ----- > From: "eulerss" <[email protected]> > To: "Prototype & script.aculo.us" <[email protected]> > Sent: Wednesday, January 21, 2009 6:31 PM > Subject: [Proto-Scripty] help with autocompleter > > > hi guys, i want to implement the autocomplete function with ajax, im > > very new using prototype (i only know how to do dependent selects), > > can you tell me some ideas? actually i have de database in mysql and i > > want to use php for this, thanks in advance for your help > > > here is the simple code that i only know for selects: > > > <script type="text/javascript"> > > function OnChangeOrg() { > > some vars definitions ... > > var url = './file.php?var1=value1&var2=value2, etc > > etc > > new Ajax.Request( > > url, > > { > > method: 'get', > > asynchronous: false, > > onSuccess: function(transport) { > > var = transport.responseText; > > } > > }); > > > document.getElementById('id').innerHTML = '<select > >><option>Select</option>' + var +'</select>'; > > </script> > > > eulerss- 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 -~----------~----~----~----~------~----~------~--~---
