We also set up a blank array to store values in that will ultimately be encoded into JSON at the end and passed back.
When we are trying to get State, the text file is read and the number of lines in returned.
I m new and i need your support guys, thx and i hope we will spend great time .
send Chat will be called when a message is entered into the text area and return is pressed.
The function will pass that data to the server to do what it will with it.
We're going to be building a real-time Java Script chat room similar to Twitch.tv's chat using Java Script and Scaledrone realtime messaging service.
The app is going to be using Websockets on modern browsers and fallback technologies on older ones.
update Chat will ask the server if there are new lines in the text file.
If there are, it will return them as JSON and then this function will append those new lines to the chat.
This is just to let the PHP file know what kind of thing we need done.
As such, the first thing we'll do is snag that value and set up a switch statement that covers each possible function.
We won't be using any fancy frameworks but rather use the regular DOM API.
My name is Livia , i m a simple sexy girl who really want have some fun and relax ( i guess i find perfect place here).
We're going to need to do some Java Script stuff to get this party started.