Hi!

Hm, perhaps I'm getting it wrong, but you do not join a channel at
connect-time, do you?

So, the load-call in your used tutorial is:

client.load({
        'domain': APE.Config.domain,
        'server': APE.Config.server,
        'identifier': 'jquery',
        'channel': 'test',
        'complete': function(ape){
        ....


But your call is just:

client.load({
        complete: function(ape){
                console.log('completed');
                ape.start();
        }
        .....


I think you should try to at least configure a channel the client
should join.
Or do you specify this value in your config.js?

Best regards,
Dominik



On Nov 16, 2:05 pm, Cadrach <[email protected]> wrote:
> Some further info:
> Here are my included lib (I would like to use prototype):
> <script type="text/javascript" src="../../Clients/JavaScript.js"></
> script>
> <script type="text/javascript" src="../config.js"></script>
> <script type="text/javascript" src="/inc/js/prototype.js"></script>
>
> Here is my config.js:
> ********************
> APE.Config.baseUrl = 'http://mydomain.com/ape/';//APE JSF
> APE.Config.domain = 'mydomain.com'; //Your domain, must be the same
> than the domain in aped.conf of your server
> APE.Config.server = 'ape.mydomain.com:6969'; //APE server URL
>
> (function(){
>         for (var i = 0; i < arguments.length; i++)
>                 APE.Config.scripts.push(APE.Config.baseUrl + '/Source/' + 
> arguments
> [i] + '.js');})('mootools-core', 'Core/APE', 'Core/Events', 'Core/Core', 
> 'Pipe/
>
> Pipe', 'Pipe/PipeProxy', 'Pipe/PipeMulti', 'Pipe/PipeSingle', 'Request/
> Request','Request/Request.Stack', 'Request/Request.CycledStack',
> 'Transport/Transport.longPolling','Transport/Transport.SSE',
> 'Transport/Transport.XHRStreaming', 'Transport/Transport.JSONP', 'Core/
> Utility');
> ********************
> I tried removing the "mootools-core", but then the ajax call was not
> even sent. Is it a requirement, or do I have something else to write
> to make it work without MooTools?
>
> On Nov 16, 1:47 pm, Cadrach <[email protected]> wrote:
>
>
>
> > Hi again :)
>
> > I am starting to build my app from scratch, and I already encounter a
> > very simple issue, here is the code I have:
>
> > var client = new APE.Client;
> > client = new APE.Client();
> > client.load({
> >         complete: function(ape){
> >                 console.log('completed');
> >                 ape.start();
> >         }
>
> > });
>
> > It is inspired from the jQuery example found here 
> > :http://www.ifc0nfig.com/using-jquery-with-ape/
> > My problem is that the ajax call made by ape.start() throws the
> > following error:
> > [{"time":"1258374864","raw":"ERR","data":
> > {"code":"001","value":"BAD_PARAMS"}}]
> > The posted values are the following:
> > [{"cmd":"CONNECT","chl":1}]
>
> > I tried having some addEvent setup before the ape.start(), but it did
> > not change anything. I also tried to call ape.start() with an argument
> > (ape.start('nickname')) but same issue.
>
> > I have not begun to write any JS serverside, since the pooled
> > connection does not setup yet.
>
> > Any idea? I do not know if I should raise a bug for this, I think it
> > is something not working on my side...

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