Complete Code for Web Live Text Chart Application using ECMAScript and MySQL
Web Live Text Chart Application using ECMAScript and MySQL - Part 6
Web Development with ECMAScript and MySQL
Foreword: In this part of the series, I give you the link to the complete code of all the files, in one zip file.
By: Chrysanthus Date Published: 9 Oct 2016
Your Commercial Project
The project carried out in this series is a pedagogic project. In your commercial project you will need to do some modifications.
Talking about text that is transmitted from web page to the server and back: The text consists of name/value pairs, with the custom reserved words, & and =. In order to protect & and =, any & in a name or value should be replaced by %26; any = in a name or value, should be replaced by %3D. At the receiving end (web page), you can decode the name/value pairs by hand after you have separated them using the & and = in regular expressions. In that situation, you replace, %26 with & and %3D with =. ECMAScript has a function to do such encoding automatically and decoding automatically. You can use the functions if you want.
In this pedagogic project, the possibility of saving the complete conversation at the server (permanently and in a mature format) was not taken into account. You have to take that into account in your commercial project.
In some cases, a client or operator can type two paragraphs in the Text Area element. In those cases the newline character is involved. ECMAScript allows you to code that into your commercial project.
What about the case when the conversation is between two clients and not client and operator? Yahoo does this kind of thing. With just a bit more research, you should be able to achieve this.
All the files of this pedagogic project are in one zip file. The complete code (all the HTML, node server and node.js files) can be downloaded from the link:
End of Tutorial and End of Series
We have come to the end of this tutorial and the end of this series. I hope you appreciated the series.
Search Within a Site using ECMAScript and MySQL
More Related Links
Major in Website Design