(I sent a post before this and i don't know why it didn't appear, so
I'm resending it.)
Hello.
Thanks for respond.
I think that you have misunderstood me, the problem is NOT with the
HTML version or language settings, I know how to configure these
settings very well.
I have modified the demo.js file to make it send the user name as an
encoded string to the APE server using encodeURI(), and this works
fine.
The problem is in the server side, I have modified the nickname.js
file to make it saves & sends the user name as an decoded (not
encoded) string to the client using decodeURI, the nickname.js file
looks like:
******************************
var userlist = new $H;
Ape.registerHookCmd("connect", function(params, cmd) {
if (!$defined(params.name)) return 0;
if (userlist.has(decodeURI(params.name.toLowerCase()))) return
["007", "NICK_USED"];
cmd.user.setProperty('name', decodeURI(params.name));
return 1;
});
Ape.addEvent('adduser', function(user) {
userlist.set(decodeURI(user.getProperty('name').toLowerCase()),
true);
});
Ape.addEvent('deluser', function(user) {
userlist.erase(decodeURI(user.getProperty('name').toLowerCase()));
});
******************************
But when looking at firebug console I see that the APE sever is still
sending the name of the user as an encoded string (e.g: %D4%B7%D9) to
the client, So am I doing something wrong?
--
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/