Can someone tell me what kinds of commands I should be using?
I've got a complex PHP/AJAX volunteer translation site I've built, only if two people are working on the same text at the same time, they can't see the other's changes unless they completely refresh the page.
I'm totally new to jQuery and just want to know what sorts of commands I should be using for the following steps.
The user sees a column of class "permanent" DIVs with text. When he clicks on a DIV, the "permanent" DIV is hidden and an "editable" DIV appears with a TEXTAREA with the same text. Underneath that TEXTAREA is a nested column of class "history" DIVs.
I want a WHILE loop to run every second to pass an array with the IDs of all the visible "editable" DIVS along with nested arrays of the child "history" DIVs to my ajax.PHP page to compare it with the translations available in the database. It will then pass back the array of IDs of open "editable" DIVs within which will be an array of "history" DIVS to either add or delete.
jQuery will then insert "history" DIVs or remove them according to the returned array.
In this way any changes on any open "editable" DIV and its child "history" DIVs will constantly be updated on the user's page.
Thanks for any help. I don't think I need a full explanation of every little detail, but if you could just give me the names of the commands I should be using at each step, I'd really appreciate it. Thanks.