Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A good challange

Status
Not open for further replies.

Gorkem

Programmer
Jun 18, 2002
259
0
0
CA
Ok everyone.. I was thinking about this the other day and wondering if this can actually be accomplished with IE. Is there a way to set up an input field in a form and have it prepopulate as you type the information into it? Sort of like how the Address Bar works in IE.. As you type, it will prepopulate the address bar with what it thinks you are trying to type.

Any idea's? I have a few but it seems like it would be a huge strain on resources on the server.

Cheers,

G.



GT Interactive
-----------------------------
Components/Tools/Forums/Software/Web Services
 
easily done with a history monitor/DB saved and preloaded javascript array

_____________________________________________________________________
[sub]Where have all my friends gone to????[/sub]
onpnt2.gif

 
That could get pretty large at some point.. I know that at one point a few years back, in the MS Developers magazine, they had something for Asyncronous communication from a web page and the server.. I forget how thats done now..

That would probably work fairly well..



GT Interactive
-----------------------------
Components/Tools/Forums/Software/Web Services
 
let's see: the steps

The history would obviously need to be gathered.
save the history with a quick execute insert every submit or redirection etc.

after the history has accomplished 2 or more
run a DB query to extract the history into a array
you need the ubound of this array! plus the values

to the javascript function to onKeyDown the text box
Load the array in a global sense
<script language=&quot;javascript&quot;>
var myHistory = new Array(&quot;<%=myFirst( here manipulate ubound return to get the number of elements

you could loop in the server script to write the javascript or loop in the client script to populate. either way to get the correct amount of elements from the server to the client

then a onKey event in the text box to call the function (to be written)
to search the array for any given substring's matching and auto fill if found.

see easy! [wink]

_____________________________________________________________________
[sub]Where have all my friends gone to????[/sub]
onpnt2.gif

 
I know .NET has CallBack method but not classic.

I'll look into it.

_____________________________________________________________________
[sub]Where have all my friends gone to????[/sub]
onpnt2.gif

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top