Hi marc,
I looked at little bit more your script, there are some problems :
* You always connect with user123 (so if you reload the webpage you
will have an error "NICK_USED");
* in postMessage, you need to remove the ev.stop(); as there is no
event to stop (in the shoutbox demo ev.stop(); was used because
the form was submited)
* And the error you have with mod controller it's because you try to
post a message to channel that didn't exist
It looks like you are trying to send a message to a user with mod
controller wich it's not possible for now. You just can send data to a
channel.
Cheers
marc a écrit :
> hi nicolas,
>
> thanks for your quick feedback. i've took your html and tested it, but
> it results in the same. i have the feeling, that the script never
> comes to the point where it joins/creates the test channel. using the
> controller module to send some messages also fails.
>
> http://streaming.ape-server.local/?control&testpwd&test&POSTMSG&user123&testmsg&anticache
>
> results in: ERR NOT_A_CHANNEL
>
> to validate, that the streaming server is up and running, i've called
> the following, which works.
> http://streaming.ape-server.local/?script&it_works&anticache
>
> thanks in advance,
>
> cheers marc
>
> On May 28, 2:21 am, Nicolas Trani <[email protected]> wrote:
>
>> Hi marc,
>>
>> i just checked your code, it works! The create() function is called. I
>> use the following HTML :http://pastie.org/492165
>>
>> Do you have a javascript error? What browser do you use? Can you also
>> post your HTML? Thx.
>>
>> Cheers
>>
>>
>>
>>
>>
>> marc wrote:
>>
>>> hi guys,
>>>
>>> first of all, ape is great and sounds very promising. after getting
>>> all samples working, i'm now a bit confused about on how using the
>>> javascript framework to build a simple send/receive app, like the
>>> soutbox demo.
>>>
>>> therefore i've modified the shoutbox example and stripped everything
>>> out. now it looks like
>>>
>>> http://pastebin.com/d6929a36d
>>>
>>> but running the example in the browser does nothing more than sending
>>> one post to the server and creating a session. the raw result is:
>>>
>>> [
>>> {"raw":"LOGIN","time":"1243464632","datas":
>>> {"sessid":"e79f9f8fd8fe1885b813e9076903d7c1"}},
>>> {"raw":"IDENT","time":"1243464632","datas":{"user":{"properties":
>>> {"name":"user123"},"casttype":"uni"
>>> ,"pubid":"4c6415943f8ad66e4d79dd69cc2f9563"}}}
>>> ]
>>>
>>> but the this.create() event handler funtion is never called. thats why
>>> i'm not able to send any messages. what am i doing wrong?
>>>
>>> thanks in advance,
>>>
>>> cheers marc
>>>
>> --
>> Nicolas Trani - Développeur web
>> Weelya - Improve the web
>> 32 rue du faubourg boutonnet
>> 34090 Montpellier
>> Tel : 04 67 169 778http://www.weelya.com
>>
> >
>
--
Nicolas Trani - web engineer
Weelya - Improve the web
32 rue du faubourg boutonnet
34090 Montpellier
Tel: 04 67 169 778 - Fax: 09 57 91 99 91
http://www.weelya.com
--~--~---------~--~----~------------~-------~--~----~
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/
-~----------~----~----~----~------~----~------~--~---