|
This be the predicament:
I have a page where the user dynamically fills a div container box by creating and modifying div boxes that appear inside of it. This is all carried out by Javascript and appending new children on the main adBox div-node.
When the user is satisfied with how the box looks she will click a button and then I want to extract the DOM node tree somehow into PHP. I need to build an array of each div-child and then finally I need to store the array-elements in cells in a database.
All the div-management such as creating and modifying style properties has to be accomplished on the fly with javascript but the next step where I retrieve the DOM tree content can be done in any other manner and does not have to hapen in the same page.
Also, since I will want to fill the DOM tree from the database at some point, is XML the preferred way to go?
Very grateful if someone would point me in the right direction.
__________________
You couldn't fool anyone on the foolingest day of your life even if you had an electrical fooling machine!
|