开发者

alert to back office personnel on client side triggering?

I am building a ruby on rails project. it is a portal. I have a situation as follows:

the user browses around. Suddenly he gets a doubt.

I want to keep a small text box and a button that says "c开发者_高级运维all me".

To clarify the doubt the user can enter his phone number in the "call me" box.

now the back office personnel should get an alert or a notification about this.

I tried implementing juggernaut, but became a nightmare since the site is in a shared host and i couldn't configure the port.


a. An ugly solution, with pooling:

Why not make a page that autorefreshes every 1 sec (for the backoffice staff) that just pools the table with customer requests for new data? So, one controller that stores that phone request (the telefone number, etc) and one admin controller that displays unread phone requests from the DB.

It is simple to implement, does not consume too many resources.

b. if you really want something that should 'ring', you can integrate a SMS gateway and send a message to a backoffice phone number.

SO thread about SMS GW


Why not just sending an email to the backoffice?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜