Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DHTML DOM question
Message
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00842018
Message ID:
00842718
Views:
35
No. Unfortunately cloneNode really doesn't address the problem. What is really needed are two methods that complement each other:
1) oSourceFormatting=oSourceCell.CollectAllAttributesThatAffectEntireContents()
this would include all elements(such as font [face, size, color], Bold, Italic, etc) that enclose the entire cell's contents, plus the cell's background color, so that you can clone the cell's appearance to other cells.

and

2) oTargetCell.ApplyVisualAttributeObject(oSourceFormatting)



>-----------
>In other words, you have to traverse the DOM and do it programatically, interating to each cell in each row that corresponds to _that_ column, then programatically manipulate the HTML contents of that cell(either by re-inserting HTML or using the DOM to insert elements or set attributes on existing elements).
>---------------
>
>You shouldn't have to know what the heck you're imitating when you propagate a style. Can't you just use cloneNode for this? Stay ignorant of the information in your code, IOW?
>
>>L<
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform