weixin_33670786 2013-12-24 03:19 采纳率: 0%
浏览 20

回复:Joomla / PHP / Java / AJAX

I am a DBA, not a web developer. I am trying to build a complex website with Joomla. The user page needs to be interactive without refresh. I am not sure I am using the right words, but here goes.

Assume a user is logged in and a session is started - and we have that data along with the users IP address.

The database is crunching things from other users too, just like this one. As the database works, it generates information to be displayed on EACH users screen in real-time, without the user clicking, without screen refresh, and without the web-page code polling the server at intervals. In fact the user may click a different action from their screen simultaneously, so the user screen cannot be sitting waiting for a reply or polling at predefined intervals. It is basically receiving and transmitting "virutally" at the same time. If this is possible to do, a single piece of code would work and results could be deciphered for the right screen entry point (several boxes).

What can be used to do this? Thanks, Bruce

  • 写回答

1条回答 默认 最新

  • weixin_33720078 2013-12-24 09:53
    关注

    off cource its possible. make ajax call to link like

    "index.php?controller=myController"
    

    and in myController set header of either xml or json and prepare response of AJAX there. and at end of code write $app->close(); to avoide rendering of other modules and content

    评论

报告相同问题?