Solution (courtesy of efyx) In the Demos/config.js file set the port on which aped is running: APE.Config.server = 'ape.ape-test.local:6969'; //APE server URL So here the port is 6969
Also clear your browsers cache/cookies and restart them and try. On Sep 27, 10:55 pm, macer <[email protected]> wrote: > It also sometimes throws this error after loading it in second tab: > > [ > {"raw":"SESSIONS","time":"1254056243","datas":{"sessions": > {"currentPipe":null}}} > ] > > and chat app is loaded partially. > > On Sep 27, 10:32 pm, macer <[email protected]> wrote: > > > > > Forgot to mention that I have setup APE Server 0.9.0 on Ubuntu Server > > 9.4 Virtual Machine inside Parallels following the guide at this > > url:http://groups.google.com/group/ape-project/web/installing-ape-on-ubun... > > > On Sep 27, 10:28 pm, macer <[email protected]> wrote: > > > > Hi Nicolas, > > > > I tried out your examples but they did not work out for some reason. > > > Even the shoutbox one where in am just suppose to add the Session line > > > before client.load() did not work for some reason. The problem is that > > > when I try to open another tab of shoutbox/chat demo, it either wont > > > load anything at all or it'll make infinite POST requests to x.ape.ape- > > > test.local/? > > > Am sure that I am following the examples correctly. Btw below are the > > > versions of apps am using incase it helps: > > > OS: Snow Leopard > > > Browser: Firefox 3.5.3 > > > Firebug: 1.4.2 > > > APE Server: 0.9.0 > > > APE JSF: git clone of master tree > > > > Everything works fine for the first time across all the browsers > > > (Firefox, Chrome, Opera, Safari). Things are screwed when I try to > > > load the same thing in second tab in same browser. > > > > Thanks. > > > > On Sep 27, 7:15 pm, Nicolas Trani <[email protected]> wrote: > > > > > Hi, > > > > > the chat demo use a feature of APE called "Session". Session allow your > > > > application to handle multi-tab/window and page refresh. If you want to > > > > add this feature to your application you just have to add Session.js on > > > > the client side like that : > > > > > APE.Config.scripts.push(APE.Config.baseUrl+'/Core/Session.js'); Note : > > > > you must add this line before call client.load(); > > > > > You might have to update some little thing in your application, > > > > (especialy connection to APE Server) > > > > > Here is a quick example : > > > > > APE.Config.scripts.push(APE.Config.baseUrl+'/Core/Session.js');//Add > > > > Session.js > > > > > var client = new APE.Client(); > > > > > client.load({ > > > > 'domain':APE.Config.domain, > > > > 'server':APE.Config.server, > > > > 'identifier':'chatdemo', > > > > 'channel':'test', > > > > 'complete':function(ape){ if (ape.options.restore) { //options.restore > > > > is set to true, in case of new tab/window or refresh ape.start();//This > > > > connect to APE and will restore the session } else { > > > > ape.start(prompt('Please enter your nickname'));//Ask the user for his > > > > nickname and connect to APE with the name that the user entered }}, > > > > > 'scripts': APE.Config.scripts //Scripts to load for APE JSF }); You can > > > > also check the Shoutbox demo in APE JSF > > > > (http://github.com/APE-Project/APE_JSF/tree/master/Demos/Shoutbox/). > > > > The demo already implement session handling. To enable session in this > > > > demo just add this line before calling client.load(); in demo.html : > > > > > APE.Config.scripts.push(APE.Config.baseUrl+'/Core/Session.js'); > > > > > Regards. > > > > > macer wrote: > > > > > Hey guys, > > > > > > You people are doing a great job, highly appreciate it :) > > > > > I had setup jabber server with strophe library and have dumped it > > > > > after finding ape-project. The chat demo is exactly what I was looking > > > > > out for but am facing one problem. My application is more like a > > > > > shoutbox with online users list that appears on side of every page. > > > > > Now the problem is that if I open chat/shoutbox in another tab in same > > > > > browser it doesnt work as the nick is already taken. Its strange that > > > > > chat demo works just fine on ape-project demo page even when its > > > > > opened in multiple tabs and it even shares the nick. What is different > > > > > on ape-project site which allows sharing nick names or I guess its > > > > > sharing session! > > > > > > Thanks. > > > > > -- > > > > Nicolas Trani - Développeur web > > > > Weelya - Improve the web > > > > 32 rue du faubourg boutonnet > > > > 34090 Montpellier > > > > Tel : 04 67 169 778http://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/ -~----------~----~----~----~------~----~------~--~---
