If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Message to end users

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-13-04, 10:38
aberenguer aberenguer is offline
Registered User
 
Join Date: Dec 2002
Posts: 46
Message to end users

Hi friends,

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,
Alex Berenguer
__________________
Alex Berenguer

Last edited by aberenguer; 10-13-04 at 10:40. Reason: I missed the question.
Reply With Quote
  #2 (permalink)  
Old 10-13-04, 13:04
DMWCincy DMWCincy is offline
Registered User
 
Join Date: May 2004
Posts: 125
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.
Reply With Quote
  #3 (permalink)  
Old 10-13-04, 19:43
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
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.

Should work a bit better.
Reply With Quote
  #4 (permalink)  
Old 10-15-04, 10:34
aberenguer aberenguer is offline
Registered User
 
Join Date: Dec 2002
Posts: 46
Lightbulb

First of all thank you for your answers guys.

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?

Cheers,
Alex Berenguer
__________________
Alex Berenguer
Reply With Quote
  #5 (permalink)  
Old 10-16-04, 19:46
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
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...
Code:
Dim WshSHell
set WshShell = CreateObject("WScript.Shell")
WshShell****n("net send machinename message")

Last edited by rokslide; 10-16-04 at 19:48.
Reply With Quote
  #6 (permalink)  
Old 10-21-04, 14:38
aberenguer aberenguer is offline
Registered User
 
Join Date: Dec 2002
Posts: 46
Arrow

rokslide, thank you so much. Iīll check it, however, I donīt know if the Operation System (W2k Server) or its security allows WshShell to execute any file... Iīll try it.

I appreciate so much different ideas about the issue friends!

THanks,
"...and letīs keep a nice day."
Alex Berenguer
__________________
Alex Berenguer
Reply With Quote
  #7 (permalink)  
Old 10-21-04, 19:05
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
Yeah, security is going to be an issue no matter what method you use unless you do the entire thing using global variables and some sort of popup window or iframe or something...
Reply With Quote
  #8 (permalink)  
Old 10-25-04, 15:42
aberenguer aberenguer is offline
Registered User
 
Join Date: Dec 2002
Posts: 46
Smile

Thatīs great, thank you so much rokslide. Iīll go ahead with it.

Cheers,
__________________
Alex Berenguer
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On