script to post real time alerts to member area

by parlot
1 replies
Hi,

I am setting up a Stock Market signals website and I am looking for a script to post the signals in the members area in live time.
Basically I am looking for something like a web-based messenger to integrate into a page with only me able to post. I would aslo like that script to play an audio alert every time a post a new message.
Any one can help?
#alerts #area #member #post #real #script #time
  • Profile picture of the author mmacmillan
    There wouldn't be any one script that would do this in any sort of efficient or scalable manner. Your solution would require a few peices:

    1) backend data store of some kind (sql, mysql, access, etc) to which you post updates
    2) admin page/backend to add updates
    3) frontend web page that "listens" for updates and alerts the user (plays the sound)

    To "listen" to the updates you have a few solutions, two of which could be:

    1) submit an ajax request every X seconds checking for an update, handling the situation when an update occurs
    2) embedding an iframe on the page that refreshes every X seconds checking for an update, dropping a script that modifies the page content when an update occurs.

    You can emulate the messenger via either of the above methods, and still leverage scalability and security using your backend database.
    {{ DiscussionBoard.errors[531317].message }}

Trending Topics