Re: Display same contact list for all users

  •  07-31-2007, 3:04 PM

    Re: Display same contact list for all users

    Adam:
     
    Do something like this:
     
     
    string[] names = {"Adam","Terry","Jacob"};
    string nameString = String.Join(";",names);
     
     
    <script>
       var js_nameString = <%= nameString %>
       var my_array=where_is_mytool.split(";");
    </script>

     


    This doesn't seem to work. If what you posted above is valid, then this should also work (but it doesn't):

    <script runat="server">
             string TestString = "This is a test string";
    </script>

    <script>
            var js_TestString = <% =TestString %>;
            alert(js_TestString);
    </script>


    The second script cannot recognize TestString created by the first script. This is becoming a real pain. It is the only reason we have not already purchased the Messenger. We have it completely integrated in our site and ready to go, but this contact list issue is holding us back.
View Complete Thread