Kenneth B Kenneth B - 1 year ago 69
Javascript Question

Send dialog to multiple hardcoded friends

I'm working on a project where you choose some friends to interact with the system. When you have chosen the friends you then send them a message to the inbox. The system will not work, if the users invited are not the same as the users who are selected.

How can I prevent the user from editing the users which he are sending a message to, using the

Send Dialog

Answer Source

Multi friends can be pre selected provided you get the friendlist somehow, using either their user-ids(numeric) or usernames(alphanumeric). But you don't pass array, you pass a comma separated list of user ids, like this:

        method: 'send',
        to: '123123123,234234234',
        name: 'People Argue Just to Win',
        link: '',

See more at : Send Dialog

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download