Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DHTML DOM question
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00842018
Message ID:
00842718
Vues:
36
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<
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform