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:
00842019
Vues:
25
Let me try again without the unintentional formatting:
Given a specific location in an HTML document that you want to manipulate with DHTML, is there a way to determine the font attributes of what a newly inserted character will be? So far, the only way I have found to do this is to "walk the DOM" using the parentelement method and keeping track of the innermost elements that have to do with font attributes (such as SIZE=N FACE=x COLOR=c) and by tracking things like BOLD and STRONG elements. Lots of iteration scutwork. Seems that there should be a method or property in the DOM that lets you ask: What is the font face, font size, etc at this point in the document? Clearly the rendering engine has to know that because it renders text using exactly that information.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform