G
Guest
Hi All,
I have a webform in asp.net framework 1.1 where the dropdownlist is
populated with list of locations from the database. The depending on the list
selected, the user will be able to see functions associated for that location.
Ex: Location: Charleston
Functions: Add, Delete, Cancel, Edit
Location: Los Angeles
Functions: Activate, Cancel
The functions will be displayed in a Repeater control in the right corner of
the page.
I was able to use OnChange of this dropdownlist to show the list of
functions. But, I would like to use OnMouseover of the list of items in the
dropdownlist to show the functions. The list has to change everytime the user
does a mouseover on the location. How can I accomplish this?
Here is my code:
<aspropDownList id="LocationsGroups" tabIndex="16" runat="server"
cssclass="body-small" width="100%"></aspropDownList>
<asp:repeater id="GrpLocFunctions" runat="server">
<ItemTemplate>
<tbody>
<tr class="regular-row">
<td width="100%"><%# DataBinder.Eval(Container.DataItem, "FUNCTION") %>
</td>
</tr>
</ItemTemplate>
<AlternatingItemTemplate>
<tr class="alternate-row">
<td width="100%"><%# DataBinder.Eval(Container.DataItem, "FUNCTION") %>
</td>
</tr>
</AlternatingItemTemplate>
<FooterTemplate>
</tbody>
</table>
</FooterTemplate>
</asp:repeater>
AJAX code:
function filterFuncs() {
var gl = document.getElementById('LocationsGroups').options.value;
SunCom.UsersAgentAdmin.UserMaint.FilterGroupLocationFunctions(gl,
filterFuncs_CallBack);
}
function filterFuncs_CallBack(res) {
if(res.error == null) {
document.getElementById('GroupLocationFunctions').innerHTML =
res.value;
}
}
The code behind calls this
LocationsGroups.Attributes.Add("OnChange", "filterFuncs();")
I tried to change the OnChange to OnMouseOver. It didnot work.
Appreciate some help.
Thanks.
I have a webform in asp.net framework 1.1 where the dropdownlist is
populated with list of locations from the database. The depending on the list
selected, the user will be able to see functions associated for that location.
Ex: Location: Charleston
Functions: Add, Delete, Cancel, Edit
Location: Los Angeles
Functions: Activate, Cancel
The functions will be displayed in a Repeater control in the right corner of
the page.
I was able to use OnChange of this dropdownlist to show the list of
functions. But, I would like to use OnMouseover of the list of items in the
dropdownlist to show the functions. The list has to change everytime the user
does a mouseover on the location. How can I accomplish this?
Here is my code:
<aspropDownList id="LocationsGroups" tabIndex="16" runat="server"
cssclass="body-small" width="100%"></aspropDownList>
<asp:repeater id="GrpLocFunctions" runat="server">
<ItemTemplate>
<tbody>
<tr class="regular-row">
<td width="100%"><%# DataBinder.Eval(Container.DataItem, "FUNCTION") %>
</td>
</tr>
</ItemTemplate>
<AlternatingItemTemplate>
<tr class="alternate-row">
<td width="100%"><%# DataBinder.Eval(Container.DataItem, "FUNCTION") %>
</td>
</tr>
</AlternatingItemTemplate>
<FooterTemplate>
</tbody>
</table>
</FooterTemplate>
</asp:repeater>
AJAX code:
function filterFuncs() {
var gl = document.getElementById('LocationsGroups').options.value;
SunCom.UsersAgentAdmin.UserMaint.FilterGroupLocationFunctions(gl,
filterFuncs_CallBack);
}
function filterFuncs_CallBack(res) {
if(res.error == null) {
document.getElementById('GroupLocationFunctions').innerHTML =
res.value;
}
}
The code behind calls this
LocationsGroups.Attributes.Add("OnChange", "filterFuncs();")
I tried to change the OnChange to OnMouseOver. It didnot work.
Appreciate some help.
Thanks.