Tuesday, February 8, 2011

ASYNCHRONOUS MESSAGING SERVICE

**** ASSUMPTIONS:

  • cookies are enabled in the client side. ( this assumption could have been done away with by using encodeURL(..)


SHOWING RECEIVED MESSAGES:





------------------------------------------------


SHOWING SENT MESSAGES:










( messages not opened in a new window., shown in an iframe below.. hence the user stays on the same page.. somewhat like hotmail )

COMPOSE MESSAGE:

FORM:   http://pastebin.com/fZN65SbR
INSERTION INTO DATABASE: http://pastebin.com/dh6VZMdj


I'm having to do without the DATE attribute as couldnt figure out the format to insert the date!.
Please test and find out how to insert date.. I'm also trying in the meantime.

3 comments:

  1. if a user is logged in and if he recvs a message.. is the page updated automatically??

    ReplyDelete
  2. No.. that would require AJAX.. ... after a working model is done,... we'll implement it..

    ReplyDelete