Click to See Complete Forum and Search --> : Net send Question (Not for spamming)


landslide
09-07-2007, 12:50 PM
I am trying to set up a web based net send message systems for our network so we can display messages to popup for employees with important information. The problem is I have no idea how to write this. Can you write this in javascript? How would you start it. Thanks in advance for any help.

lmf232s
09-07-2007, 03:32 PM
You could do this a bunch of different ways.
Without thinking about it here is a solution.

Create a table that stores the information (Message, who sent it, when was it sent, flag to mark if its been read yet, and anything else.)

Then on a post back or a page load you could have a function that checks for new messages. When a new message is found you could just load that info into a panel, div, modal popup and display it to the user. Once the user closes it or checks a checkbox to indicate that the message has been read you could update the flag in the db so that you dont pull that message any more.

Again this is just a quick thought on it and like i said you could implement this 100 different ways. Just an idea.

landslide
09-07-2007, 03:46 PM
Thanks for your reply. The reason we were trying to do it through netsend is because we want to just send it to an employee with out them having anything open. I can probably do this once I fiure out how to write some code on how to do a netsend when a managers hts submit on the web. That really what I can figure out. Any ideas how to write somthing like that? Thanks for your reply so far

landslide
09-10-2007, 04:55 PM
anyone have any ideas on this?

russell
09-14-2007, 03:49 PM
Dim oShell
Dim command
Set oShell = CreateObject("wscript.shell")

command = "net send someone msg"
oShell.exec(command)

Set oShell = Nothing


now just need to dynamically build the value of command and of course, make sure that messenger and alerter services arfe running

landslide
10-09-2007, 02:30 PM
Can this be done with javascript or does it need to be done in vbbasic or. net?