954,566 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Client Side < -- > Server Side

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 :

but how it works?

thank you

koh
Junior Poster in Training
73 posts since Jul 2004
Reputation Points: 11
Solved Threads: 0
 

Could you be more specific?

jac39
Newbie Poster
3 posts since Apr 2007
Reputation Points: 10
Solved Threads: 1
 

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

do you think its possible?

thank you

koh
Junior Poster in Training
73 posts since Jul 2004
Reputation Points: 11
Solved Threads: 0
 

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.

hollystyles
Veteran Poster
1,182 posts since Feb 2005
Reputation Points: 262
Solved Threads: 68
 

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

koh
Junior Poster in Training
73 posts since Jul 2004
Reputation Points: 11
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You