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:
00842197
Views:
26
Mark,

Can't you just insert the element and then query the element itself to find it's attributes?

>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.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform