Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HTML coding
Message
From
15/01/2001 22:29:02
 
 
To
15/01/2001 06:06:33
Napoleon Yam
Princess Cruises: Emerald Princess
Caribbean, Philippines
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00463701
Message ID:
00464048
Views:
22
>Greetings to all,
> How come when I save a simple form in html format, the commands I've issued on the command button don't work. Is there a command or 3rd party software that can convert vfp code to html code?

HTML doesn't actually generate any events for you. A number of options exist. The worst one, supported directly by VFP, is to create an ActiveDocument, which then executes client-side. It ends up forcing the client to load the app and VFP runtime across the network, and uses resources on both the client and server while the form runs. It only is runable from a Win32-based system using IE4 or IE 5 as its browser, and won't run in these browsers if the user doesn't allow you to upload the app and runtime files to their system.

A number of products such as Web Connection from West Wind will permit you to write a VFP app that runs on the server, interfacing with the client via the http protocol, which actually serves up web pages and reacts to Responses from a client. It handles the interface activity between client and server using VFP code, but you'll need to rewrite your forms, and rethink your app in general, to isolate the UI running client-side from the business logic and data handling which runs server-side. Rick Strahl's book "Internet Applications with Visual FoxPro 6.0" from Hentzenwerke covers the subject of the differences between a typical monolithic VFP app and web apps very well, and he runs workshops on the subject, focused on his Web Connection product frequently; you can check www.west-wind.com for details on his book, Web Connection product, and class schedule and pricing.

Web Connection is not the only product for writing web-based apps using VFP, you might check Hallogram for some alternative products. AFP is one I've used before.

You should probably investigate multi-tiered system design while investigating the requirements of moving your app to the web.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform