Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Extract data from DOM tree
Old 10-06-2007, 01:38 PM Extract data from DOM tree
Novice Talker

Posts: 10
Name: Anders
Location: Sweden
Trades: 0
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!
Svartgam is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Extract data from DOM tree
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25727 seconds with 12 queries