Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data Driving HTML Outline Output
Message
From
24/07/2005 20:50:05
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Data Driving HTML Outline Output
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01035579
Message ID:
01035579
Views:
59
I would like to use a VFP table and data drive HTML output that creates an outline style output. That is I want to use the
    or ordered list and
  1. HTML tags to display the results.

    Here is some sample HTML code to examine:
     <ol>
      <li>Top Level 
       <ol>
        <li>Sub-Level
         <ol>
          <li>Sub-Level Item 1</li>
          <li>Sub-Level Item 2</li>
          <li>Sub-Level Item 3
           <ol>
            <li>Sub-Sub-Level Output</li>
           </ol>
          </li>
         </ol>
        </li>
    As you can see, an order list can go several layers deep. It gets tricky to write a program that can generate this output since Sub-Level Item 3, Sub-Level and Top Level areas do not close their respective tags until after the subordinate tags are complete. However, other tags such as Sub-Level Item 1 and 2 close their tags immediately.

    Anyone done something like this before? How would you set up the table properly to handle the variable ident level tags? Does something like a parentFK column that points back to its parent PK sound right?
Next
Reply
Map
View

Click here to load this message in the networking platform