javascript - persistent data in php question -


Ive written this clean javascript 'thing' using jquery and ajax. All of this is based on the idea that there is a feature in a div that lets you write inside the div. (Contentedable = true). I thought it would be good to talk about a chatroom type, and the Holy Cow is doing some good things (*), but I have a problem.

Using AJAX I have a php page I post which takes the posted data (X, Y, Text, ID) and brings it into a JSON-like object without writing a database (I think the redundancy), how can I create this data Am I See the problem? : Variables are essentially vapor in a php page after running on page, so NewJason will not get anything to retrieve my Javascript Ajax call.

* I have used several text by jquery effects and setting colors, for scrolls and evaporation, matrix style, for example. Also, a cursor is placed in the div where the user clicks.

You have to store the data somewhere. If you do not want to use a fully developed database, you can store them in flat files (i.e.: txt) and use PHP to handle files.

Of course this is not very scaleable, if you are going to use a lot of it, then recommend using the database.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -