473,399 Members | 3,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Ajax Toolkit Autocomplete

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 ID="MyTextBox" autocomplete="off"
runat="server" Width="208px"></asp:TextBox>
<cc1:AutoCompleteExtender
runat="server"
BehaviorID="AutoCompleteEx"
ID="autoComplete1"
TargetControlID="MyTextBox"
ServicePath="AutoComplete.asmx"
ServiceMethod="GetStrings"
MinimumPrefixLength="2"
CompletionInterval="1000"
EnableCaching="true"
CompletionSetCount="20"
DelimiterCharacters=";, :">
<Animations>
<OnShow>
<Sequence>
<%-- Make the completion list transparent and
then show it --%>
<OpacityAction Opacity="0" />
<HideAction Visible="true" />

<%--Cache the original size of the completion
list the first time
the animation is played and then set it to
zero --%>
<ScriptAction Script="
// Cache the size and setup the initial size
var behavior = $find('AutoCompleteEx');
if (!behavior._height) {
var target =
behavior.get_completionList();
behavior._height = target.offsetHeight -
2;
target.style.height = '0px';
}" />

<%-- Expand from 0px to the appropriate size
while fading in --%>
<Parallel Duration=".4">
<FadeIn />
<Length PropertyKey="height" StartValue="0"
EndValueScript="$find('AutoCompleteEx')._height" />
</Parallel>
</Sequence>
</OnShow>
<OnHide>
<%-- Collapse down to 0px and fade out --%>
<Parallel Duration=".4">
<FadeOut />
<Length PropertyKey="height"
StartValueScript="$find('AutoCompleteEx')._height" EndValue="0" />
</Parallel>
</OnHide>
</Animations>
</cc1:AutoCompleteExtender>

Sep 19 '07 #1
2 8401
On Sep 20, 5:46 am, "Lloyd Sheen" <a...@b.cwrote:
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 ID="MyTextBox" autocomplete="off"
runat="server" Width="208px"></asp:TextBox>
<cc1:AutoCompleteExtender
runat="server"
BehaviorID="AutoCompleteEx"
ID="autoComplete1"
TargetControlID="MyTextBox"
ServicePath="AutoComplete.asmx"
ServiceMethod="GetStrings"
MinimumPrefixLength="2"
CompletionInterval="1000"
EnableCaching="true"
CompletionSetCount="20"
DelimiterCharacters=";, :">
<Animations>
<OnShow>
<Sequence>
<%-- Make the completion list transparent and
then show it --%>
<OpacityAction Opacity="0" />
<HideAction Visible="true" />

<%--Cache the original size of the completion
list the first time
the animation is played and then set it to
zero --%>
<ScriptAction Script="
// Cache the size and setup the initial size
var behavior = $find('AutoCompleteEx');
if (!behavior._height) {
var target =
behavior.get_completionList();
behavior._height = target.offsetHeight -
2;
target.style.height = '0px';
}" />

<%-- Expand from 0px to the appropriate size
while fading in --%>
<Parallel Duration=".4">
<FadeIn />
<Length PropertyKey="height" StartValue="0"
EndValueScript="$find('AutoCompleteEx')._height" />
</Parallel>
</Sequence>
</OnShow>
<OnHide>
<%-- Collapse down to 0px and fade out --%>
<Parallel Duration=".4">
<FadeOut />
<Length PropertyKey="height"
StartValueScript="$find('AutoCompleteEx')._height" EndValue="0" />
</Parallel>
</OnHide>
</Animations>
</cc1:AutoCompleteExtender>
have you tested the web server (AutoComplete.asmx) to ensure it works
properly?

Sep 19 '07 #2

"densial" <de*****@gmail.comwrote in message
news:11*********************@q5g2000prf.googlegrou ps.com...
On Sep 20, 5:46 am, "Lloyd Sheen" <a...@b.cwrote:
>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 ID="MyTextBox" autocomplete="off"
runat="server" Width="208px"></asp:TextBox>
<cc1:AutoCompleteExtender
runat="server"
BehaviorID="AutoCompleteEx"
ID="autoComplete1"
TargetControlID="MyTextBox"
ServicePath="AutoComplete.asmx"
ServiceMethod="GetStrings"
MinimumPrefixLength="2"
CompletionInterval="1000"
EnableCaching="true"
CompletionSetCount="20"
DelimiterCharacters=";, :">
<Animations>
<OnShow>
<Sequence>
<%-- Make the completion list transparent and
then show it --%>
<OpacityAction Opacity="0" />
<HideAction Visible="true" />

<%--Cache the original size of the completion
list the first time
the animation is played and then set it
to
zero --%>
<ScriptAction Script="
// Cache the size and setup the initial
size
var behavior = $find('AutoCompleteEx');
if (!behavior._height) {
var target =
behavior.get_completionList();
behavior._height =
target.offsetHeight -
2;
target.style.height = '0px';
}" />

<%-- Expand from 0px to the appropriate size
while fading in --%>
<Parallel Duration=".4">
<FadeIn />
<Length PropertyKey="height"
StartValue="0"
EndValueScript="$find('AutoCompleteEx')._height " />
</Parallel>
</Sequence>
</OnShow>
<OnHide>
<%-- Collapse down to 0px and fade out --%>
<Parallel Duration=".4">
<FadeOut />
<Length PropertyKey="height"
StartValueScript="$find('AutoCompleteEx')._height " EndValue="0" />
</Parallel>
</OnHide>
</Animations>
</cc1:AutoCompleteExtender>

have you tested the web server (AutoComplete.asmx) to ensure it works
properly?
Yes I have the code you are looking at is the code from the sample. It
works on my server since I have created an application to show the toolkit
using my IIS.

LS

Sep 19 '07 #3

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

Similar topics

11
by: =?Utf-8?B?VHJlbnQ=?= | last post by:
I have tied an AutoCompleteExtender to a textbox to indicate suggestions to the user. Everything works fine if I utilize a webservice to fetch the results. However, I want to put the web service...
3
by: nirmaljanak | last post by:
Hi all, This is new member of forum. Can anybody help me out to understand ajax tag library attributes. i want to use ajax:autocomplete element in my jsp page.. my code is looks like this...
1
by: Bob | last post by:
Hi, Hope you can help me with this one. I'm at my wits end. I'm trying to create an intelligent edit-box like the excellent "Customer" one at the URL: ...
1
by: mark4asp | last post by:
Which should I use: 1. "ASP.NET AJAX-Enabled Web Site" or 2. "AJAX Control Toolkit Web Site"? In the first, controls from the control toolkit start as: <cc1:SomeControl></cc1> In the 2nd,...
0
by: shapper | last post by:
Hello, I am using a AutoComplete and I am having a few problems in creating the ServiceMethod. I have the following method: ' ... <WebMethod()_ Public Function GetCategories(ByVal...
5
by: tuananh87vn | last post by:
hi, i want to use ajax to validate a form. here is my work including 2 files, main.html and process.php main.html <script language="javascript"> //initialize xmlhttprequest object... var...
7
by: SV | last post by:
I am using ASP.Net / VB.Net v 2005. I want to add text recognition to one of the text box of suburb in my form. What I want to do is when user type any character in that text box, one dynamic list...
4
by: Peter | last post by:
ASP.NET I have an application which use ASP.NET Autocomplete extender which works great. But I have a question how to update all the fields on the screen using Ajax. Users starts typing in a...
11
by: =?Utf-8?B?R2VyaGFyZA==?= | last post by:
I have run into a situation that if a page/tab that uses the Ajax toolkit (using .net version 3.5) is closed before the Ajax enable controls complete loading, then IE locks up. Does it in both IE7...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.