How to create VDF Web Applications: Difference between revisions

From DataFlex Wiki
Jump to navigationJump to search
Jka (talk | contribs)
m Changed from Web Programming to Web Applications category
 
(25 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{underconst}}
= Introduction =


This page describes the technologies available to create web applictions using Visual DataFlex.


= Introduction =
= Getting started =
== Getting started ==


To be able to develop ASP pages , then you need Internet Information Server. The most easy way to get that these days is to grab Microsofts Web Platform installer here :
To be able to develop ASP pages , then you need [http://en.wikipedia.org/wiki/Internet_Information_Services Internet Information Server]. The most easy way to get that these days is to grab Microsofts Web Platform installer here :


http://www.microsoft.com/web/channel/products/WebPlatformInstaller.aspx (note that it is in beta right now)
http://www.microsoft.com/web/channel/products/WebPlatformInstaller.aspx  


This tool will provide you with a full stack for developing asp related things. It will also keep track of certain things you need to enable on Windows Vista and Windows Server 2008.
This tool will provide you with a full stack for developing asp related things. It will also keep track of certain things you need to enable on Windows Vista and Windows Server 2008.


== The overall idea about Active Server pages and vdf==
You will also need to install [[Webapp server]] from the [[Portal:Visual DataFlex]] installer. Note that you will need version 14.1 to support the windows 2008 server.
asp pages are about creating HTML markup for serverside code in an easy way .  


This means that '''asp is not a real programming language''' - it is about creating html to got together with serverside components you develop in Visual DataFlex (VDF). If you have problems you need to solve , then the best idea is to try solve them in Visual DataFlex (or another programming language for that matter) .
== Putting on your [http://www.professorsolomon.com/thinkingcap.html Thinking cap]==


If you are coming from the visual dataflex world on windows, then you are probably used to writing code that can respond to events immediately.  
Grab your [[DataDictionary|Data Dictionaries]] from your old application and expose these using Web Objects .  


Here in the web world you have to consider the fact that you are in a web browser that will have to talk to the server before getting an answer (or at least getting an answer that involves data and logic on the server).  This means that you cannot run vdf code on the client inside the browser (not yet). When you develop ASP pages using vdf then you develop COM compents that run on the serverside and are 'glued' together using a scripting language like
*WBO
*Global.asa (this is where your code is stackup up. check the list of WBP's there)


*[http://en.wikipedia.org/wiki/VBScript vbscript]
*[http://en.wikipedia.org/wiki/JScript jscript] (jscript is microsofts version of [[Javascript]] )


= In the trenches =


*[[EnablingJSONIN]]




= VDF on the serverside =
== Validation ==
*Web Business Process (these things gets registered and you can access them in asp)
Here are some good links for validating :
*Global.asa (this is where your code is stackup up. check the list of WBP's there)
 
 
 
= Web development primer  =
== The basics ==  
You should always make sure that any html/javascript/css you do validates to the current standards. It will save you time in the long run.
*[[HTML]] ( validate here: [http://validator.w3.org/]  )
*[[HTML]] ( validate here: [http://validator.w3.org/]  )
*[[CSS|Cascading Style Sheets]] ( validate here: http://jigsaw.w3.org/css-validator/ )
*[[CSS|Cascading Style Sheets]] ( validate here: http://jigsaw.w3.org/css-validator/ )
*[[Javascript]] ( validate here: http://www.jslint.com/ )
*[[Javascript]] ( validate here: http://www.jslint.com/ )


== Advanced ==
== Styling using css ==
Before doing more advanced stuff on the clientside of things, you should take the time to familiarize yourself with the material on quirksmode.org. It provides a great overview on how things operate on the different browsers out there.
 
*[http://www.quirksmode.org/js/contents.html quirksmode javacript]
Using css for styling can help you if you don't like doing design yourself!  If you style using css then somebody else can do the design for you.
*[http://www.quirksmode.org/css/contents.html quirksmode css]
 
*start your adventure here: [http://www.w3.org/Style/CSS/ css]
*go here when something goes wrong: [http://www.quirksmode.org/css/contents.html quirksmode css]


== Javascript on the client ==
[[Javascript]] can be good for validating what the user enters on the screen. It can also be good for fancy [[AJAX]] techniques.






[[category: Web Programming]] [[Category:Stub]] [[Category:Cookbook]]
[[category: Web Applications]] [[Category:Stub]] [[Category:Cookbook]]

Latest revision as of 14:08, 8 April 2020

Introduction

This page describes the technologies available to create web applictions using Visual DataFlex.

Getting started

To be able to develop ASP pages , then you need Internet Information Server. The most easy way to get that these days is to grab Microsofts Web Platform installer here :

http://www.microsoft.com/web/channel/products/WebPlatformInstaller.aspx

This tool will provide you with a full stack for developing asp related things. It will also keep track of certain things you need to enable on Windows Vista and Windows Server 2008.

You will also need to install Webapp server from the Portal:Visual DataFlex installer. Note that you will need version 14.1 to support the windows 2008 server.

Putting on your Thinking cap

Grab your Data Dictionaries from your old application and expose these using Web Objects .

  • WBO
  • Global.asa (this is where your code is stackup up. check the list of WBP's there)


In the trenches


Validation

Here are some good links for validating :

Styling using css

Using css for styling can help you if you don't like doing design yourself! If you style using css then somebody else can do the design for you.

Javascript on the client

Javascript can be good for validating what the user enters on the screen. It can also be good for fancy AJAX techniques.