Need help for developing jabber client in web application using php/mysql -- am using ejabberd server

Dear Team,

I need help for developing a jabber client with php/mysql as base in our existing application.

The following things are to be done in my application.

1/. Once we were logged into the application, we should dynamically logged into our jabber server.
2/. We build the application in framesets (have three frame areas) . So we use one frame (let this frame be ABC) for logging into the jabber server (after logged into the application).
3/. What our need is, we have a list of user with their related details in a list - from the database (Each person will have their own individual jabber id).
The client window for jab chat will be done at each door step from the users listings. Which means, in each row there will be a icon. If we click this icon there (by ajax) opens a toggle area. From there we should able to send messages and receive messages. { This toggle window should be treated as jabber client (so each person area there is a jabber client window) }
So, we should receive the messages from the jabber server and get displayed into this client window if the jab-client toggle window is opened. ( from the message loop which is running in frame ABC ).
We can send messages to the other jabber user through the individual jab-client area. It means that we should not break the current jabber connection (message loop - which is running in frame ABC). By all means with the help of one connection, we should able to send / receive all the messages from the jabber ( we should able to decide later which message is to which person, we can do this with the help of jabber id's).

I am explained the above state of our requirement in our current application.

I need the following answers for doing the above.

Note: Message loop means -- we should get the result such as roster details and all incoming messages under one roof (one jabber connection, from this connection we should able to send / receive messages).

1/. From the frame ABC, can we use ajax for doing the background process ( such as make the jabber connection / login authentication & the message loop running ).
2/. For your info, I am using the class Jabber related files (which comprises - class_Jabber.php, class_ConnectionSocket.php, class_xmlParser.php & class_SHA1Library.php).
3/. How does we get the data out each time from the jabber server ( roster update and incoming messages ) from this jabber class via ajax??
4/. Whether this is possible in ajax? or we should do it by using as iframes / frames.
5/. We should able to get the data out from the jabber server each time - when there is any new message from any users. Then, update this data in other frame ( where the list of users and their relavant jabber client toggle window is opened ).
6/. Once we get the data out from the jabber class, then we can update this data in our relevant div ids (where the user list is displayed) from one frame area(where we get the jabber data each time) to other frame.

Please could any one help me out for the above scenerio.

Thanks in advance.

Thanks and Regards,
Srinivasan M

Syndicate content