SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Dec 2008
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question controlling an instance of a web page from a server....?

    i need to create 2 web pages....one for faculties...and the other for students.Multiple instances of the student page will be accessed at the same time, identified by their login id. Now, i need to create a messaging service( kind of) for the teacher to send messages as a pop up to the student(s) who are currently online.... any idea how this can be implemented....?

    or to be short...

    can you control an instance of a web page from a server....?

  2. #2
    ALT.NET - because we need it silver trophybronze trophy dhtmlgod's Avatar
    Join Date
    Jul 2001
    Location
    Scotland
    Posts
    4,836
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would look into having an AJAX function that polls a web service for messages for that specific user. This means you can easily resuse it across the site as you please.

  3. #3
    SitePoint Wizard webcosmo's Avatar
    Join Date
    Oct 2007
    Location
    Boston, MA
    Posts
    1,480
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    you may save the message on database in the message table(for example). also have another table named messageRed as:
    studentId,messageId,read (bit or char)

    Now as the teacher submits a message you may check which students are logged in and has not read the message. if not read show a popup and mark on database as read.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •