I have chat page in PHP which is loaded in IFrame on that page regarding which url he opened ape client is is loaded and started to join different channel. I found the way to make difference between the pipes if user is on more than one channel, problem is he loads all pipes when he joins another channel in another window, then I need to catch which one is for that window. Also when parsing DATA in onRaw I need to check which pipe is equal to the channel name on current page and thats how it works...
So I found solution to that problem, but I dont think thats best practice how to do this, also big issue is that I need to keep ape client stuff on the same server where Ape server is, because if I put Ape client page on the same server where the site is I get errors probably he has issues making requests to the subdomain. I have mysite.com and chat.mysite.com, now on chat.mysite.com I have Ape server with ape client currently because I couldnt make it to work with ape client residing on the mysite.com and making requests to the Ape server on chat.mysite.com. This is the reason why I must load Ape client in iframe on mysite.com and I am loading iframe from chat.mysite.com/path/to/ape/client.php. Tnx for answers :) On Wednesday, August 1, 2012 12:09:44 AM UTC+2, RakonDark wrote: > > welcome :) > > > problem but problem is for me now how to know if user is already on > channel > > when he goes to the second page, or even better what is the best > practice to > > do such thing, tnx for answers. > > what is a second page ? , do you reset the HTML with another page (and > reset the Javascript too , then it reload all and you only could do it > with sessions to store the actual pipes the user is joined , so you > can call the pipe when the tab is open . > > but i think this isnt a good idea to manage ape like a webserver > embeded iframe ? > -- 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/
