如何制作一个类似于gmail弹出窗口的网络聊天应用程序?
正如您在 Gmail 中看到的那样,当您单击屏幕右下角时,会出现一个小弹出窗口,用于聊天。有趣的是,即使我们从一个网页导航到另一个网页,此弹出窗口仍然打开并位于同一位置。这怎么能做到呢?它看起来不像是不同的页面。这是完全不同的页面吗?或者是同一个页面?
提前致谢 :)。希望版主不要结束我的问题。上次我问一些对我有用的问题时,他们对我投了反对票并结束了我的问题。
As you must have seen in gmail, a small popup appears to chat when you click on right bottom corner of your screen. Interestingly, this popup remains open and at the same place even when we navigate from one webpage to another. How can this be done? It doesn't look as though it's different page. Is it different page altogether? or is it the same page?
Thanks in advance :). Hope these moderators don't close my question. Last time i asked something that would have been useful to me, they negatively voted me and closed my question.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你应该尝试一下 jQuery。
有一个非常好的模块,名为 jQuery 聊天模块这可能值得一试。
You should give jQuery a shot.
There is a pretty sweet module called jQuery chat module which could be worth a try.
他们在整个 GMail 应用程序中使用 AJAX,很难将其开发得像 GMail 聊天那样好。在考虑开始开发 AJAX 之前,您应该阅读一些有关 AJAX 的教程/书籍。
They use AJAX for the whole GMail app, it's quite hard to develop it as good as the GMail chat. You should read some tutorials/books about AJAX before you should even consider start to develop it.