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:
00842680
Views:
29
Mark,

Browsing through some stuff in the debugger, take a look at the CurrentStyle property of the Attributes of an Item.

Have you considered using the DHTML edit control? Using a CSS also gives you a lot easier control the style of elements.

I'm not sure I'd try and design an HTML editting system in VFP given that there are several free and low cost tools like FrontPage.

>As an example: Given a table cell:
>
<TD BgColor=BLACK><FONT COLOR=RED FACE=ARiAL SIZE=2>My text</FONT></TD>
>The cell will have a black background with red text, arial face, and font size of 10 point (assuming normal text size is set for browser). When user is working working with DHTML control in WYSIWYG mode, they see the rendered text, not the HTML. If they want to propagate that style down the cells of a column, I want them to able to do it with a couple of mouse clicks rather than manually setting properties for each cell comprising that column, which is the only way to do it with the DHTML editing control's built-in capabilities. 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).
df (was a 10 time MVP)

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

Click here to load this message in the networking platform