Implementing incremental find


 
Thread Tools Search this Thread
Top Forums Web Development Implementing incremental find
# 1  
Old 11-17-2009
Implementing incremental find

Hi everybody,

I was wondering how one would implement an incremental find* feature into a web form?

I have a page where users can enter ids, for example names. If a user starts typing in D, then a list of names starting with D will be suggested as a drop down menu, where users can select the relevant one. Upon clicking on the menu, the form will be filled.

Google suggest** would be an example of what I want to achieve.

Thanks!

Dave

*Incremental find - Wikipedia, the free encyclopedia
**Features : Query suggestions - Web Search Help
# 2  
Old 11-17-2009
you may want to wait until the user types at least two or three characters into the field, but what you're wanting can easily be done by way of ajax passing query strings back and forth. Page fires off entry contents after three characters, script returns back list of 5 relevant and matching entries in a query string back to the client, client accepts information, iterates over it, creating a form that pops up underneath the text box they're typing in.
# 3  
Old 11-17-2009
Quote:
Originally Posted by thmnetwork
you may want to wait until the user types at least two or three characters into the field, but what you're wanting can easily be done by way of ajax passing query strings back and forth. Page fires off entry contents after three characters, script returns back list of 5 relevant and matching entries in a query string back to the client, client accepts information, iterates over it, creating a form that pops up underneath the text box they're typing in.
Thanks for your reply thmnetwork!

Seems easy enough :P And I agree with waiting until the user types at least two or three characters.

I've just come back from the library with some ajax books, so hopefully I can implement this soon.

Dave
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Incremental logic

Hi Guys, am trying to write logic to do incremental value using linux Example: a=00.00.00.01 My b should be like this b=00.00.00.02 and when it reaches 99 my b should look like this b=00.00.01.99 Appreciate your help guys Please use CODE tags when displaying sample input, sample... (14 Replies)
Discussion started by: buddi
14 Replies

2. Shell Programming and Scripting

Incremental numbering?

Would it be possible for a script to duplicate a file and incrementally number it? File in: XXX_007_0580_xxxx_v0016.aep File out: XXX_007_0580_xxxx_v0017.aep If someone knows of a way I'd love to see it. Thanks! (7 Replies)
Discussion started by: scribling
7 Replies

3. Shell Programming and Scripting

FULL or INCREMENTAL ???

Hi. Can someone tell me if the following script that i have made is a script for INCREMENTAL BACKUP or FULL BACKUP. My teacher told me that is doing an FULL BACKUP. • find /etc /var /home -newer /backups/.backup_reference > /backups/.files_to_archive • touch /backups/.backup_reference • tar... (1 Reply)
Discussion started by: bender-alex
1 Replies

4. Windows & DOS: Issues & Discussions

Incremental Backup

I have a folder /root/test in a centos 5.3 system. I want to take an incremental backup of the contents of the folder in the C:\Downloads folder of a windows system present in the same lan as the linux system. What are the ways of executing this plan? Kindly help (0 Replies)
Discussion started by: proactiveaditya
0 Replies

5. UNIX for Dummies Questions & Answers

incremental by 1

let says, i have this number as 000002080, i want to add 1 to make it 000002081, and then i want to add 1 to 000002082, add 1 to 000002083, 84. i=000002080 TOT=$(echo "scale=9; $i + 1" | bc) echo $TOT it shows 2081, i want to retain 000002081, 000002082, 000002082, 000002084. (2 Replies)
Discussion started by: tjmannonline
2 Replies

6. Shell Programming and Scripting

Incremental backup

Hi, I would like to create a daily incremental backup of a directory with all of the files within and add a timestamp (year-month-day) to the tar.gz file. I have the following, but it doesn't backup the inside files of the directory. #!/bin/bash tar -czf... (1 Reply)
Discussion started by: agasamapetilon
1 Replies

7. Shell Programming and Scripting

find & incremental replace?

Looking for a way using sed/awk/perl to replace port numbers in a file with an incrementing number. The original file looks like... Host cmg-iqdrw3p4 LocalForward *:9043 localhost:9043 Host cmg-iqdro3p3a LocalForward *:10000 localhost:10000 Host cmg-iqdro3p3b LocalForward... (2 Replies)
Discussion started by: treadwm
2 Replies

8. UNIX for Dummies Questions & Answers

incremental backup

Hi All.. i am trying to write a script which will give the incremental tar backup of all files with latest timestam. i tried with find -mmin -2 but if it takes half on hour or something to creat the tar itself, then no meaning in using the above command. so please help me to find the... (2 Replies)
Discussion started by: Usha Shastri
2 Replies

9. Programming

Implementing a shell in C

Hi, I am implementing a shell in C, with the following problem... Suppose the shell is invoked from the command line as >> myshell < test.in > test.out 2>&1 I have to execute the commands in test.in and redirect them to test.out How does one detect in the main function that the shell... (1 Reply)
Discussion started by: jacques83
1 Replies
Login or Register to Ask a Question