I´ve to send a message for each end-user logged into a page. I´ve been thinking to open a popup page on their machine when a next event is made by the user, I mean to check if a global variable is true on each event and if so this popup is opened showing the necessary message.
Do you have any idea to make it? I appreciate so much any one.
Thanks and Regards,
Last edited by aberenguer; 10-13-04 at 10:40.
Reason: I missed the question.
The biggest issue you are going to have using pop-ups is if the browser blocks pop-ups(which is becoming more common). One idea I've seen a few sites do is have a little icon that shows up at the top of the page when there is a message to show the user. The user clicks on it to go to a messaging section to read, send, or reply to messages.
When you say a global variable I assume you mean an application variable.... the problem with this is that you don't know when to reset it. What you really need is rather then a boolean value saying there is a new event, have a numeric value. Store a copy of this value in their session variables when they log in and then if their session variable does not match the application variable get all the events from their number to the current one.
DMWCincy, you are right, blocker pop-ups is becoming more commom each day but the page will work in a local network and it´s supposed to be less commom something like that, anyway of course that it´s not impossible... you said about an icon and the first doubt I had is about how can it checks if there is new message... it could be a fantastic solution, if you remember where you have seen it, please let me know.
rokslide, I got it... ok, I´ll look for it, thanks!
One more way I´ve looked for was using 'net send' as a way to send message for a specific user. I could use the SQL Server to execute a command line and them sending a message with it getting the machine name as parameter.. what you guys feel?
I guess Net send would work if you had the right permissions and could get the required information. I don't know that you would need to use SQL Server to execute the command though. In theory you could use WShell, something like...
set WshShell = CreateObject("WScript.Shell")
WshShell.Run("net send machinename message")