Hi all, 

Here is a quick question for the DHTML folks in the list.  I have an HTML table with a 
list of friends and a select box on the same page with the same list.  I need to click 
on the name of a friend and cause the same item in the select box to be selected.  I 
can currently using:

    function SelectFriend(SelectedOption) {
        obj = document.form.FriendsForm.intFriends;
        obj.selectedIndex = SelectedOption;

With the call to the function looking like:

    javascript:SelectFriend(#CurrentRow#)

This works fine as long as the 2 queries generating the list and the select box are 
the same.  However, if I sort the list of friends, the indexes no longer match.  How 
can I pass my function a FriendID (the value of the options in the select box) and 
have it find the index to select?

My call neds to look like:

    javascript:SelectFriend(#FriendID#)

Thanks in advance.  


Russel


______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to