By "saving JavaScript", I mean taking the information that Javascript has put on the page (including forms) and save it to a MYSQL database (with PHP). If anyone needs any more clarification, feel free to ask!
Well if the page has a form you can simply submit to a PHP script that will then save whatever you have in the form. You could also use AJAX to connect to a PHP script, which will store things in a database. There's an enormous amount of tutorials out there, just search for them.
Hi.I probably should have specified more... I want to connect to PHP at intervals (or changes to the current text). However, I can't find any documentation for that...
Yea, AJAX is what you want. AJAX can call PHP whenever you need, even automatically. See this Periodic Refresh AJAX Pattern for some details. Essentially you'll use JavaScript's setTimeout or setInterval functions to call some function every so many seconds.
And the confusing thread of the month goes too.......
Thanks for your reply, and the link. Unfortunately, I am fairly new to Javascript, and completely new to AJAX... So most parts of the page don't make much sense to me. Do you think I would be better off researching the setTimeout or setInterval functions instead?