You are here: Re: [PHP] autocomplete a field « PHP « IT news, forums, messages
Re: [PHP] autocomplete a field

Posted by Joe Harman on 06/03/05 23:46

Hi Philip!

congrats on being new to PHP... you'll find that PHP is very robust
'Server Side Scripting Language'... you'll probably want to subscribe
to the javascript mailing list for your javascript questions... the
people here want you to keep the questions on this mailing list
restricted to PHP.. also, the subscribers here would appreciate it if
you search the mailing list first, check the PHP manual and Google
before you post your question... it just keeps the repetative
questions to a minumum...

But, I would like to help you out... So, here is a couple of things to
look at... while most of these are pretty advance, they'll show you a
nice combination of javascript and PHP that will give you an auto
complete feature... since you didn't give any details about what info
you want to auto complete (ie users database... search terms) I will
just post to general info for you so you can see how other people are
accomplishing this

(1) You may want to do some reading about application architecture..
Google uses an architecture similar to the one described in the
article below.. the architecture is called AJAX, XMLHttpRequest... or
what ever you want to call it... but there is some good examples here

http://www.adaptivepath.com/publications/essays/archives/000385.php

(2) this is a great tutorial using PHP and Javascript which references
a dictionary

http://www.developertutorials.com/tutorials/php/google-suggest-with-php-050525/page1.html

http://www.peej.co.uk/articles/rich-user-experience.html

Good luck & Have fun!
Joe



On 6/3/05, Philip Hallstrom <php@philip.pjkh.com> wrote:
> > Hi, I am new to php and I would like to find out if there's some kind of
> > a function that would autocomplete the word/value when the user is
> > trying to fill out a field in a form. Thank you.
>
> This is a JavaScript issue, but that said...
>
> http://www.pjkh.com/wiki/field_completion
>
> Toot! Toot!
>
> ;-)
>
> I'm sure there are others as well. If you need it to be more dynamic, try
> here:
>
> http://developer.apple.com/internet/webcontent/xmlhttpreq.html
> http://jpspan.sourceforge.net/wiki/doku.php
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--
Joe Harman
---------
Do not go where the path may lead, go instead where there is no path
and leave a trail. - Ralph Waldo Emerson

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация