Or if this is a static at page load array, render it in a <script/> tag in your template.
On Thu, Mar 3, 2011 at 9:17 AM, urukay <radovan.be...@gmail.com> wrote: > Hi, > > what script do you mean, how does it look like? > > If you are using JQuery, just use JQuery's UI autocomplete to do the > same thing. > > Radovan > > On 3. Mar., 13:01 h., "Szabo, Patrick \(LNG-VIE\)" > <patrick.sz...@lexisnexis.at> wrote: >> Hi, >> >> I finally found a JavaScript that gives me autosuggest functionality for >> a textfield. >> Unfortunately this script uses a hard-coded array for the suggestions >> and of courese i want to use values from my database. >> >> Any idea how i could pass the javascript an array that contains all my >> values ?! >> >> Im calling the script like this in my template: <body >> onLoad="createAutoComplete();"> >> >> Kind regards >> >> . . . . . . . . . . . . . . . . . . . . . . . . . . >> Patrick Szabo >> XSLT Developer >> LexisNexis >> Marxergasse 25, 1030 Wien >> >> mailto:patrick.sz...@lexisnexis.at >> Tel.: +43 (1) 534 52 - 1573 >> Fax: +43 (1) 534 52 - 146 > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.