Beagelbone Web page I/O problem

Hello all;

I am having the following problem.

I would like a message box or pop-up message to appear when a pin goes low on the Beaglebone.

I have found numerous examples showing how to turn an LED on from a web page, but nothing

about communicating in the other direction.

It seems to me that if you can send commands from a web page you should be able to receive from the ‘bone.

I am using socketio with bonescript and the Cloud9 IDE that ships with the Angstrom image.

Anyone have any ideas ?

Thanks