Member Avatar for kohkohkoh

Currently i am building a message queue program which
one is sending a message to another party.
lets say ABC sending a message to DEF

if ABC sends a msg out using message queue, it stores at the msg queue manager, once the msg stored in,i want the server side to detect the message and automatically alert DEF that he receives a msg. alert for example: pop up windows and etc...

i understand by using javascript : <server>

but how it works?

thank you

Could you be more specific?

Member Avatar for kohkohkoh

actually i want the server-side to trigger open a new windows on the client-side.

do you think its possible?

thank you

Http is conectionless, so you will need to use client side javascript. Use the setTimeOut function to poll the server by sending an ajax request using the XMLHttpRequest object available in most script enabled browsers, or new ActiveXObject("Microsoft.XMLHTTP") in IE browsers.

Member Avatar for kohkohkoh

oic, thank you...
now i've figured it out to use AJAX.
thank you
and sorry for the trouble
:p

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.