hassank1 Posted November 5, 2008 Share Posted November 5, 2008 I am working on a chat support system..so I want a new popup window to appear whenever a client try to contact the chat operator.. so how can I create a popup window to be opened on a certain event.. thanks. Link to comment https://forums.phpfreaks.com/topic/131464-create-a-popup-chat-window-and-show-it/ Share on other sites More sharing options...
Adam Posted November 5, 2008 Share Posted November 5, 2008 You'd probably need to use a timed event using javascript's setInteval() function. Then you could setup your own JS function to check if there are any new messages sent from clients, and obviouslly if so display a new popup window. For something like this you'll need to look into 'AJAX' as JS alone cannot run any scripts from the server; which you'll need to do to check for new chats, send / receive messages, etc. I'd suggest reading a few tutorials so you understand how AJAX works and what it can do for your web applications - then I think you'll have a much better idea of what you need to do... http://www.google.co.uk/search?q=ajax+tutorial Adam Link to comment https://forums.phpfreaks.com/topic/131464-create-a-popup-chat-window-and-show-it/#findComment-682818 Share on other sites More sharing options...
hassank1 Posted November 5, 2008 Author Share Posted November 5, 2008 well Thanks for the info ...however I know some AJAX and I've already built a simple chat ... but What I want to know is how to create a popup window ?? I think there's a simple function or something Link to comment https://forums.phpfreaks.com/topic/131464-create-a-popup-chat-window-and-show-it/#findComment-682982 Share on other sites More sharing options...
Adam Posted November 6, 2008 Share Posted November 6, 2008 Hah sorry, yeah look into "window.open()" .. Link to comment https://forums.phpfreaks.com/topic/131464-create-a-popup-chat-window-and-show-it/#findComment-683515 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.