You need to add the file in a .js (a config file I don't recall the name
now) and restart APE.


Le 14 mars 2012 14:42, sanoi <[email protected]> a écrit :

> Thanks. I really do not know what solved this problem but now it works.
> Just another question: Do you know how to say APE it should reload its
> modules? Cause if I put a new file into the folder Commands the new files
> are not loaded. Thank you very mutch.
> Sanoi
>
> Am Mittwoch, 14. März 2012 15:17:56 UTC+1 schrieb Nicolas:
>
>> only I can think of is mixing up between info and infos.
>>
>>
>>
>> Le 14 mars 2012 14:17, Nicolas Guibert <[email protected]> a
>> écrit :
>>
>>> Hmmm. No clue :(
>>>
>>>
>>> Le 14 mars 2012 14:13, sanoi <[email protected]> a écrit :
>>>
>>> Thanks for your answer. The problem is: i call the function like that:
>>>> client.addEvent('ready', function() {
>>>>                 console.log('Client connected');
>>>>                 client.core.request.send('**showip',{"test1":"test","**
>>>> test2":"test"});
>>>>                 console.log('Done!');
>>>>     });
>>>> So the params are set. But now (if it works lik i think it work ;) )
>>>> the info object on the server should not be undefined right? So now, i
>>>> could request the info.ip?
>>>> If yes, this does not work for me because it says: info is undefined.
>>>>
>>>> Thanks for your help.
>>>> Am Mittwoch, 14. März 2012 14:52:07 UTC+1 schrieb Nicolas:
>>>>
>>>>> params will be populated by the info that you provide in core.request
>>>>> (in the form {info1:"test1", info2:"test2"} )
>>>>>
>>>>> info will be populated by APE server automatically with things like
>>>>> pubid, IP (I think), etc.
>>>>>
>>>>> Hope this helps.
>>>>>
>>>>>
>>>>>
>>>>> Le 14 mars 2012 13:47, sanoi <[email protected]> a écrit :
>>>>>
>>>>>> Sorry copy & paste error.
>>>>>>
>>>>>> This is the example i try to get to work:
>>>>>>
>>>>>> Ape.registerCmd("foocmd", true, function(params, info) {
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>  Ape.log("The user ip : ("+info.ip+"), foo : " + params.foo);});
>>>>>>
>>>>>>
>>>>>>
>>>>>> So the command is calles foocmd. And now my question is: How do I
>>>>>> have to call the function, to get the info object defined. Cause when I
>>>>>> call the function like this:
>>>>>> client.addEvent('ready', function() {
>>>>>>                 console.log('Client connected');
>>>>>>                 client.core.request.send('**show**ip');
>>>>>>                 console.log('Done!');
>>>>>>     });
>>>>>>
>>>>>> Thanks
>>>>>> Jonas
>>>>>> Am Mittwoch, 14. März 2012 14:26:39 UTC+1 schrieb Serfess:
>>>>>>
>>>>>>> Can u show your exact code please...
>>>>>>
>>>>>>  --
>>>>>> 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
>>>>>> ape-project+unsubscribe@**google**groups.com<ape-project%[email protected]>
>>>>>> For more options, visit this group at
>>>>>> http://groups.google.com/**group**/ape-project?hl=en<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
>>>> ape-project+unsubscribe@**googlegroups.com<ape-project%[email protected]>
>>>> For more options, visit this group at
>>>> http://groups.google.com/**group/ape-project?hl=en<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/
>

-- 
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