Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using DHTML and DOM to apply formatting
Message
From
17/11/2002 06:07:28
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00723320
Message ID:
00723624
Views:
10
Hi!

Did you ever use cascading styles? You can define a unique style that, for example, tells that content of all <TD> elements inside of the table with class = "MyClass" should appear in bold, and simlar TH elements should appear in bold, italic and blue color, as well as all rows (TR) should have height = 30.

DOM and DHTML in IE allows defining styles that way.

You can read more about CSS at the http://www.w3.org or learn it with easy at http://www.w3schools.com.

>I'm trying to understand how to apply a formatting directive (such as "<FONT> "</FONT>" opening and closing tags) to a DHTML text range such that the various nodes within the textrange have the formatting tags applied appropriately (basically, walking the tree). This can be tricky if the range has a table within in it, or tables in tables, because (for example) the formatting tags need to be applied around the HTML within every <TD> element in order for the formatting to render correctly within the table.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform