I have lots of dBase tables (Version 5.7 !!!) for which I have to create web pages. It is tedious and lots of typing !!
So I spent a couple of hours "semi-automating" the process - it has already saved me more than the time it took to create the "semi-automation".
It was written in and for Version 5.7 BUT it does work in dB2K
I have no doubt that dB2K already does it (and probably more professionally) but I'm not clever enough to have learned how to use dB2K properly yet - hehehehe !!!
How it works
- Copy two files into the same directory/folder as the table you want to do it for
the files are:-gen_htm1.prg and gen_htm1.skl
You can down load copies of these two files from gen_htm1.zip - Do not change
gen_htm1.skl
- Do change two or three lines in
gen_htm1.prg
-
Use Internet Explorer (Version 5 +) to open the Web Page produced
-
Drag the elements anywhere you want them on the page (they will click to a vertical grid)
Now that is smart, aint it !! -
Do leave any check boxes ticked - PLEASE
-
If you do not want any of the Textboxes or TextAreas to appear in the final page, just type
<ignore> in the box concerned
-
If you want a different title for the data element, type the appropriate HTML string in the
box concerned. For example
<B>Type the TITLE in here</B>
-
You can try it out on a file
contacts.htm
- it is a real one that I generated
-
When you have done all your shuffling, click on the "S" Submit pushbutton on the top right hand sid of the
page
That will get you a page that reflects the changes that you did
Save the source of that new page as:-somethingorother.htm
Now you can tweak/tidy up that page -
If you look at the source of the
contacts.htm
file, you will see that the transformation is carried out in
http://195.99.184.152/testing/gen_form.asp
feel free to use that url for your own use.If you want a copy of that ASP file, send me your EMail address with a request, and I will send it to you.