|
|
Registered tutorials: 501 Registered Users: 32529
|
|
Rating: 2.5 out of 2 votes cast
Category: Ajax and PHP
|
AJAX Chat Tutorial 4
Abstract: This is a fours part of the serial. In part 4 of this tutorial we take a look at adding a new MessageAction method to our current Controller
part 1, part 2, part 3 Part 4: Sticking on the server side, we can make a stab at adding a new MessageAction method to our current Controller. This will expect one piece of information: a new chat message. XML has a number of illegal characters you may not use within XML content. We could use the CDATA style enclosures to tell parsers to ignore such characters but unfortunately SimpleXML is not quite up to handling CDATA. Instead we'll simply ensure the message is passed through htmlentities() to turn HTML special characters into their entity equivalents. This has much the same effect at the cost of a little added complexity.
|
Reviews:
Rate and Review This Site
No reviews yet
Statistic Information About this Resource:
| Total Hits: |
80 |
| Unique Hits: |
68 |
| |
Daily |
Weekly |
Monthly |
| |
Unique |
Total |
Unique |
Total |
Unique |
Total |
| Average |
0 |
0 |
0.2 |
0.2 |
2.7 |
3.4 |
| Current |
0 |
0 |
0 |
0 |
1 |
1 |
| Previous |
0 |
0 |
0 |
0 |
1 |
1 |
| Nov 19 |
0 |
0 |
1 |
1 |
2 |
2 |
| Nov 18 |
0 |
0 |
0 |
0 |
3 |
3 |
| Nov 17 |
0 |
0 |
0 |
0 |
6 |
8 |
| Nov 16 |
0 |
0 |
0 |
0 |
2 |
3 |
| Nov 15 |
0 |
0 |
0 |
0 |
0 |
0 |
| Nov 14 |
0 |
0 |
1 |
1 |
0 |
0 |
| Nov 13 |
0 |
0 |
0 |
0 |
9 |
12 |
| Nov 12 |
0 |
0 |
0 |
0 |
3 |
4 |
| Highest |
2 |
3 |
5 |
8 |
9 |
12 |
|
|
|
Script Execution Time: 0.40457 | SQL Queries: 10 | Members: 501
Ajax Tutorial Top List - Powered by Aardvark Topsites PHP 5.1.2
|