472,783 Members | 976 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,783 software developers and data experts.

AJAX based autocomplete

Hi,
I want to build an Ajax based autocomplete feature. Being a server side
guy, I have little knowledge regarding layers and DHTML stuff. Having
already implemented the AJAX part of the app, I am stuck with the
layers thing.

The Google Suggest autocomplete is cool. Has anybody written code
(free) or adapted Google Suggest kind of thing for their own use (like
querying from database and showing results) ? Can you point me to some
links or resources on the net.

Thanks.

Oct 6 '05 #1
4 2396
sh**********@gmail.com wrote:
Hi,
I want to build an Ajax based autocomplete feature. Being a server side
guy, I have little knowledge regarding layers and DHTML stuff. Having
already implemented the AJAX part of the app, I am stuck with the
layers thing.

The Google Suggest autocomplete is cool. Has anybody written code
(free) or adapted Google Suggest kind of thing for their own use (like
querying from database and showing results) ? Can you point me to some
links or resources on the net.


The Wikipedia entry for XMLHttpRequest is amazingly good:

<URL:http://en.wikipedia.org/wiki/XMLHttpRequest>

--
Rob
Oct 6 '05 #2
RobG said the following on 10/6/2005 5:02 PM:
sh**********@gmail.com wrote:
Hi,
I want to build an Ajax based autocomplete feature. Being a server side
guy, I have little knowledge regarding layers and DHTML stuff. Having
already implemented the AJAX part of the app, I am stuck with the
layers thing.

The Google Suggest autocomplete is cool. Has anybody written code
(free) or adapted Google Suggest kind of thing for their own use (like
querying from database and showing results) ? Can you point me to some
links or resources on the net.


The Wikipedia entry for XMLHttpRequest is amazingly good:

<URL:http://en.wikipedia.org/wiki/XMLHttpRequest>


But very dissapointing none the less because the second sentence is
totally and utterly false:

The biggest advantage of XMLHTTP is the ability to dynamically update a
webpage without reloading the entire webpage or using software plugins
(This was previously only possible using hidden IFRAMEs with DHTML).

No, it doesn't require a plugin, but, in IE it requires ActiveX. I would
prefer a plugin, or, Mozillas approach to it.

The second inaccuracy is the "This was previously only possible using
hidden IFRAMES with DHTML".

There is another alternative to those two approaches, the second of
which enjoys much wider support in browsers than XMLHTTP does - loading
..js files on the fly. And if the end approach is to dynamically change
the page, it doesn't matter how you get the file as long as you get the
data you want in a format you can deal with. And I have been loading .js
files on the fly in many more browsers than support XMLHTTP for at least
3 years now.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Oct 8 '05 #3
On Sat, 08 Oct 2005 00:24:29 -0400, Randy Webb
<Hi************@aol.com> wrote:
There is another alternative to those two approaches, the second of
which enjoys much wider support in browsers than XMLHTTP does - loading
.js files on the fly. And if the end approach is to dynamically change
the page, it doesn't matter how you get the file as long as you get the
data you want in a format you can deal with. And I have been loading .js
files on the fly in many more browsers than support XMLHTTP for at least
3 years now.


Randy,

Could you say a little more on this loading of .js files ? Or point to
further info on this?

Thanks

Geoff

Oct 8 '05 #4
Geoff Cox said the following on 10/8/2005 5:11 AM:
On Sat, 08 Oct 2005 00:24:29 -0400, Randy Webb
<Hi************@aol.com> wrote:

There is another alternative to those two approaches, the second of
which enjoys much wider support in browsers than XMLHTTP does - loading
.js files on the fly. And if the end approach is to dynamically change
the page, it doesn't matter how you get the file as long as you get the
data you want in a format you can deal with. And I have been loading .js
files on the fly in many more browsers than support XMLHTTP for at least
3 years now.

Randy,

Could you say a little more on this loading of .js files ? Or point to
further info on this?


http://groups.google.com/group/comp....+js+file&hl=en
Your three options are:

1)Changing the src property of a script tag.
2)Inserting a script src="" tag in a div via innerHTML
3)Using document.createElement to add a script element.

Of those three, createElement seemed to have the widest support among
newer browsers.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Oct 9 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: CountDraculla | last post by:
Hi all, zephyr is an ajax based framework for php5 developers. you can easily develop business applications using this robust framework. this is extremely easy to learn and implement. you can...
0
by: shining.sea | last post by:
This might be interesting for web master who have lots of digital and want an easy way to manage them http://digg.com/software/AJAX_Based_File_Managment_Web_Application This company, called...
2
by: nupur.agarwal29 | last post by:
Hi, I am using System.Windows.Forms.Webbrowser control in my application. For the Ajax based sites like live.com, the webbrowser control processes and renders the javascript requests, even after...
2
by: mr.appasamy | last post by:
Hi All, I need to create a dynamic menu and tree using AJAX ,Struts and XML (or some other medium to fetch data for tree formation). Initially i have to draw the tree using the values from...
1
by: cvijaykrishna | last post by:
hi i already designed a web based application in VS-2005 and i have a problem now that is how to covert it into ajax based wesite i have ajax frame work installed on my system pls sugesst me any...
2
by: Lloyd Sheen | last post by:
I am trying to get this to work. Basically copied the code from the toolkit but absolutely nothing happens. Any ideas?? The code was inserted into an existing page. <asp:TextBox...
2
by: Andy B | last post by:
Is there anywhere I can get a free and good reliable rich edit control for websites?
3
by: fkhowaja | last post by:
i want to show the property details and there status (APPROVED, REJECTED, PENDING) the whole result is coming through ajax now i want that if i click on Approved icon or Pending icon or Rejected icon...
3
SPanicker
by: SPanicker | last post by:
How can I design an efficient AJAX based dynamic table using .NET ? Do I necessarily need to use JQuery / Prototype libraries or plug-ins to achieve this? I am referring to similar implementation...
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.