Xaja Notifier: Notify user browsing a site in real time with AJAX

Recommend this page to a friend!
  Info   Example   Screenshots   View files (17)   Download .zip   Reputation   Support forum (4)   Blog    
Ratings Unique User Downloads Download Rankings
60%Total: 451 All time: 6,065 This week: 228
Version License PHP version Categories
xaja-notifier 1.0.0MIT/X Consortium ...5.0PHP 5, Databases, Content management, A...
Description Author

This package can notify user browsing a site in real time with AJAX.

It takes AJAX requests that perform long polling to send notification messages to users browsing the current site pages.

Browser side JavaScript code can receive the messages immediately and display them to the user.

The package provides an administration interface that can send messages to the users queueing them in a database.

Recommendations
Innovation Award
PHP Programming Innovation award nominee
November 2015
Number 3
Sites like for instance social networks send notifications to the users to let them know about new content, new messages, or actions that they need to take.

This package implements a solution to send notifications to users using AJAX so they can be aware of new notifications without having to load a new page.

Manuel Lemos
Picture of Ettore Moretti
  Performance   Level  
Name: Ettore Moretti is available for providing paid consulting. Contact Ettore Moretti .
Classes: 12 packages by
Country: Italy Italy
Age: ???
All time rank: 111542 in Italy Italy
Week rank: 131 8 in Italy Italy
Innovation award
Innovation award
Nominee: 3x

Details

xajanotifier

What is XajaNotifier? XajaNotifier is a solution designed to send notifications to users browsing your site in real-time. Using the technique of reverse ajax through the implementation of long polling.

What I could use? Could be very useful in case you want to send any message to all your users online fast and non-invasive.

How do I configure? Db side, import the table that you will find in the package. Server side, change configurations to connect to the db in config.php. Client side configuration is the only one in the script js, where you specify the server address.

Known issues - deliberately (to make scripts as customizable as possible) has been given the opportunity to inject JavaScript code in the message

if not you need it, you may want to inhibit such a possibility ... 
File NotificationSender.php 
Replace: 
	$XS->SendNotification($notification,$uid);
with:
	$XS->SendNotification(htmlentities($notification),$uid);
Screenshots  
  • ServerAdminPanel.png
  • ClientWait.png
  • ClientNotification.png
  Files  
File Role Description
CLIENT (1 file, 1 directory)
SERVER (3 files, 3 directories)
LICENSE Lic. License text
README.md Doc. Documentation
Xaja_db_export.sql Data sql export

  Files  /  CLIENT  
File Role Description
js (1 file)
   index.php Example Example script

  Files  /  CLIENT  /  js  
File Role Description
   XajaClient.js Data Auxiliary data

  Files  /  SERVER  
File Role Description
core (3 files)
img (4 files)
js (2 files)
   AdminNotificationControlPanel.php Example Example script
   HttpLongPoll.php Example Class source
   NotificationSender.php Example Class source

  Files  /  SERVER  /  core  
File Role Description
   config.php Conf. Configuration script
   XajaAdminServer.php Class Class source
   XajaServer.php Class Class source

  Files  /  SERVER  /  img  
File Role Description
   asc.gif Icon img
   bg.gif Icon img
   desc.gif Icon img
   refresh.jpg Icon img

  Files  /  SERVER  /  js  
File Role Description
   dialog.js Data Auxiliary data
   tablesorter.min.js Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 60%
Total:451
This week:0
All time:6,065
This week:228
User Ratings User Comments (3)
 All time
Utility:81%
Consistency:68%
Documentation:56%
Examples:68%
Tests:-
Videos:-
Overall:60%
Rank:1340
 
This is a handy package and has many, many uses.
4 years ago (Terry Woody)
80%
This is just nice nothing else
4 years ago (Samuel Ladapo)
60%
This is just nice nothing else
4 years ago (Samuel Ladapo)
60%
 

For more information send a message to info at phpclasses dot org.