The userslist object contains user's pubid as the key, and the value is the
user object (http://www.ape-project.org/docs/server/users/).

Getting the user's name depends on how you actually store the name. If
you're using the default nickname.js module, then you can get the user's
name by looking into the "name" property.

for (pubid in userslist) {
   if (userslist[pubid].getProperty("name") == "Bob") {
      // Found Bob's pubid.
   }
}

On Sat, Nov 20, 2010 at 9:52 AM, Alaa Keshim <[email protected]> wrote:

> Thank you again for response Felix, I see that userlist object
> contains only the name of the user and boolean vaule (true),   I can't
> find where i can get the pubid of another user using his name.
>
> --
> You received this message because you are subscribed to the Google
> Groups "APE Project" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<ape-project%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/ape-project?hl=en
> ---
> APE Project (Ajax Push Engine)
> Official website : http://www.ape-project.org/
> Git Hub : http://github.com/APE-Project/
>

-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply via email to