ConvincingMail - Email Marketing SoftwareConvincingMail
 
Email Marketing Software

Welcome Guest Search | Active Topics | Members | Log In | Register

Access Behaviour Via JS Options · View
Guest
Posted: Friday, July 04, 2008 10:18:50 AM
Rank: Guest
Groups: Guest

Joined: 11/18/2007
Posts: 15
What's the best way to access the behaviour functionality in the Autocomplete via email. Typical extenders are accessed using the $find(behaviourid) and then whatever function I want to call.

Basically I want to force the autocomplete dropdown to hide.

Thanks

aaron.visser@gmail.com
trooper
Posted: Friday, July 04, 2008 11:18:19 AM
Rank: Administration
Groups: Administration

Joined: 11/18/2007
Posts: 23
Hi,
you can access the control with $find.
example:
this is the handlers which call the control internal functions
Code:

<script language="JavaScript" type="text/javascript">
function testShow(ev) {
    $find('<%=StateAASE.ClientID%>').ShowSuggestions(ev);
}
function testHide(ev) {
    $find('<%=StateAASE.ClientID%>').HideSuggestions(ev);
}
</script>


in the html just call this handlers like:
Code:
<a href="#" onclick="testShow(event);return false;">Show</a> <a href="#" onclick="testHide(event);return false;">Show</a>


The control tag is from demo project without changes:
Code:
<cc1:AdvancedAutoSuggestExtender SuggestOnEmptyField="true" TargetControlID="StateTextBox" ServiceUrl="~/Suggestions.asmx/StateSuggest" ID="StateAASE" SuggestionsDivId="suggestionsDiv" runat="server"  OnClientItemSelected="State_OnSelect" />
Guest
Posted: Friday, July 04, 2008 11:22:16 AM
Rank: Guest
Groups: Guest

Joined: 11/18/2007
Posts: 15
thanks for the reply, i'll try it out!
Guest
Posted: Friday, July 04, 2008 11:49:15 AM
Rank: Guest
Groups: Guest

Joined: 11/18/2007
Posts: 15
works perfectly.
Users browsing this topic
Guest


Forum Jump
You can post new topics in this forum.
You can reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.