How to create a pm alert notice

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2004
Posts: 40
Reputation: Jason123 is an unknown quantity at this point 
Solved Threads: 0
Jason123 Jason123 is offline Offline
Light Poster

How to create a pm alert notice

 
0
  #1
Dec 23rd, 2008
Hi to all, I am asking on behalf for my best friend. The question is how to create a pm alert notice just like this site
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,080
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Solved Threads: 68
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: How to create a pm alert notice

 
0
  #2
Dec 31st, 2008
Database wise:

Create a table that holds the messages, with at least the message, userid to send it to, userid who sent it, and "read date" or read flag. When a user sends the message, you can then populate the message, userid who sent it, userid who sent to. When the user who is receiving the message logs in, do a query for messages to that user where the read date is null or the flag is false. Show all messages returned, or a button to lead them to the page to view the messages.
I answer pm's.
I answer questions.
I answer quickly.
I answer.
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 40
Reputation: Jason123 is an unknown quantity at this point 
Solved Threads: 0
Jason123 Jason123 is offline Offline
Light Poster

Re: How to create a pm alert notice

 
0
  #3
Jan 1st, 2009
Thanks for the reply. From what i have noticed - whenever a pm is being send out to a specific user. There's an immediate request prompt box for that user to read the pm .
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,080
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Solved Threads: 68
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: How to create a pm alert notice

 
0
  #4
Jan 1st, 2009
That method can only be done via ajax, and a loop triggering a database query. Your best bet would be to check for messages on page_load. If there is a message, show an alert. I believe that is how it is handled here as well. You only receive that new message alert when you trigger a page_load.
I answer pm's.
I answer questions.
I answer quickly.
I answer.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC