Presentation is loading. Please wait.

Presentation is loading. Please wait.

zip Developing browser based applications [SysReader Programmers Festival ‘97] T.N.C.Venkata Rangan Vishwak Associates.

Similar presentations


Presentation on theme: "zip Developing browser based applications [SysReader Programmers Festival ‘97] T.N.C.Venkata Rangan Vishwak Associates."— Presentation transcript:

1 http://www.easytools.com/festival. zip Developing browser based applications [SysReader Programmers Festival ‘97] T.N.C.Venkata Rangan Vishwak Associates Chennai - 600 033 www: http://www.easytools.comhttp://www.easytools.com email: vishwak@md2.vsnl.net.in Phone: 489 9109

2 http://www.easytools.com/festival. zip Conventional Front Ends Powersoft PowerBuilder Oracle forms Microsoft Visual Basic Borland dBase/Microsoft Foxpro CA-Clipper C/C++ Borland Delphi

3 http://www.easytools.com/festival. zip Conventional … Advantages Familiarity and Experience with them Reliability Connectivity (with backend databases)

4 http://www.easytools.com/festival. zip Conventional … Disadvantages Portability problems Compatibility problems Distribution & Installation Support and TroubleShooting Complexity to Developers Inconsistent UI between various Apps. Restricted navigation for the user Security on different Modules

5 http://www.easytools.com/festival. zip HTML based Forms + Client/Server Side Programming + Database Source/Server = Browser based Applications Browser based Apps?

6 http://www.easytools.com/festival. zip Consistent UI between different Applications Familiar browser paradigm of navigation Internet/Web Standards Installation Browsers are inexpensive and some are free Browser... Advantages

7 http://www.easytools.com/festival. zip HTML - An Example Welcome Hello World!

8 http://www.easytools.com/festival. zip ActiveX Controls (.ocx) ActiveX Documents (.vbd) Client Side Programming The ACTIVE way [Can I say that as the Microsoft way? :-) ] The JAVA Way [Is it the Programming Nirvana? :-) ]

9 http://www.easytools.com/festival. zip ActiveX is basically a specification for interfaces between objects. What is ActiveX … ??? ActiveX Controls makes up the components used to build other applications, whereas ActiveX Documents is the program. ActiveX Documents may be loosely called as a sophisticated Form Object. You don’t, for example, put a bunch of ActiveX Documents on a form, as you do ActiveX controls on it.

10 http://www.easytools.com/festival. zip Tools to build ActiveX... qMicrosoft Visual Basic 5.0 qMicrosoft Visual C++ 4.x or above qMicrosoft Visual J++ qBorland Delphi 3.x Tip: VB 5.0 can directly convert your VB 4.0+ forms into ActiveX controls.

11 http://www.easytools.com/festival. zip ActiveX - Will it run in...? qActiveX is supported in IE 3.0 and above qRuns in Navigator 3.x and above provided you have NCompass labs Plug-in installed:-( Note: qIf the ActiveX control or document is developed in VB/VC++/VJ++ you require the respective supporting libraries/DLLs/VM. qActiveX controls are Auto downloadable ! :-)

12 http://www.easytools.com/festival. zip Sample HTML with ActiveX VB Form into ActiveX Control inside browser <OBJECT ID="UserControl11" WIDTH=557 HEIGHT=442 CLASSID="CLSID:1DDBB7E7-62BB-11D1-AA70-008048FD3FDA"> I have my VB 5.0 form as an ActiveX control inside IE 4.0 now.

13 http://www.easytools.com/festival. zip

14 JAVA JAVA: A simple, object-oriented, distributed, interpreted, robust, secure, architecture neutral, portable, high-performance, multi- threaded, and dynamic language. A JAVA Applet is a JAVA program that adheres to a set of conventions that allows it to run within a JAVA-compatible browser.

15 http://www.easytools.com/festival. zip JAVA - Sample A Simple Program Here is the output of my program:

16 http://www.easytools.com/festival. zip JAVA - Sample Applet import java.applet.Applet; import java.awt.Graphics; public class HelloWorld extends Applet { public void paint(Graphics g) { g.drawString("Hello world!", 50, 25); } HelloWorld.java

17 http://www.easytools.com/festival. zip JAVA - Sample Applet

18 http://www.easytools.com/festival. zip Client Side… Advantages Easier conversion Server load is reduced Interactivity Reduced Network traffic

19 http://www.easytools.com/festival. zip Client Side … Disadvantages Code is visible to users Limited Portability Restricted Browser independence Requires powerful clients

20 http://www.easytools.com/festival. zip Server Side Programming qActive Server Pages (ASP) qPERL and other CGI tools qMicrosoft ISAPI & Netscape NSAPI qJAVA Servers from Sun & Netscape

21 http://www.easytools.com/festival. zip Server Side Programming

22 http://www.easytools.com/festival. zip ASP - An Example ASP Example >Hello World!

23 http://www.easytools.com/festival. zip ASP - An Example

24 http://www.easytools.com/festival. zip ASP Example Hello World! ASP - An Example

25 http://www.easytools.com/festival. zip Form Processing - HTML (eating.html) Sample Form Late-night programmers eating habits Check all that apply Pizza Coffee Chips

26 http://www.easytools.com/festival. zip Form Processing - HTML (eating.html)

27 http://www.easytools.com/festival. zip Sample Form Processing Late-night programmers eating habits Your choices You like: Form Processing - ASP (eating.asp)

28 http://www.easytools.com/festival. zip Form Processing - ASP (eating.asp)

29 http://www.easytools.com/festival. zip <HTML> Project list Project list <BODY><% '----- Open the database, create the record set Set cn = Server.CreateObject ("ADODB.Connection") cn.Open "dsn=ProjList;database=ProjInfo;uid=;pwd=;" Set rs = cn.Execute ("select ProjName, ProjMgr, DueDate fromProjects order by DueDate") fromProjects order by DueDate") ADO Sample Code

30 http://www.easytools.com/festival. zip Response.Write (" ") '----- Captions Response.Write (" ") for iCol = 0 to rs.Fields.Count - 1' Response.Write (" ") Response.Write (rs(iCol).Name) Response.Write (" ") next ADO Sample Code

31 http://www.easytools.com/festival. zip '----- Data rows do while not rs.eof Response.Write (" ") for iCol = 0 to rs.Fields.Count - 1 Response.Write (" ") Response.Write (rs(iCol)) Response.Write (" ") next rs.MoveNextloop ADO Sample Code

32 http://www.easytools.com/festival. zip Response.Write (" ") rs.Closecn.Close%></BODY></HTML> ADO Sample Code

33 http://www.easytools.com/festival. zip ADO Sample Code

34 http://www.easytools.com/festival. zip PERL PERL stands for Practical Extraction and Report Language. Larry Wall (creator of PERL) loves to call it Pathologically Eclectic Rubbish Lister

35 http://www.easytools.com/festival. zip PERL - Advantages FREE of cost Popularity Available for many platforms Socket Support Pattern Matching (ideal for searching text) Flexible Text handling (No details to worry) Newer packages for Win32 support ODBC

36 http://www.easytools.com/festival. zip PERL - Sample sub getFormData { my($buffer) = ""; if ($ENV{'REQUEST_METHOD'} eq 'GET') { $buffer = $ENV{'QUERY_STRING'}; } else { read(STDIN, $buffer,$ENV{'CONTENT_LENGTH'}); }

37 http://www.easytools.com/festival. zip Server Side… Advantages Instant Portability-Platform Independence No manual installation Easy/Auto Distribution (upgrades too) Scalability Runs in thin clients Data + Code resides only in the Server Code (Core business logics) are secure No need of seperate S/W client licenses No compilation process for ASP & PERL

38 http://www.easytools.com/festival. zip Server Side… Disadvantages Learning curve (because of New tools) Server is overloaded? Server licenses are expensive Speed (both ASP & PERL are interpreted)

39 http://www.easytools.com/festival. zip Decision ? Develop. Ease of development not only means that an application can cost less to develop, it means that the team's skills can be better utilized. Scale. It is possible to build a single application that can be used by virtually any number of users— simultaneously. Maintain. Customer requirements change, businesses change, business needs change and will continue to change while the team adapts existing systems to last week's changes. Deploy. Systems should be easy to install and should easily be upgraded to the newer versions. Use. The application must not only work responsively, it must anticipate user needs,

40 http://www.easytools.com/festival. zip  Programming PERL - Larry Wall  HTML The definitive guide - Musciano & Kennedy  JavaScript Programming - Reaz Hoque  Understanding ActiveX & OLE - David Chappell  Active Visual Basic 5.0 - Eddon & Eddon  The JAVA Tutorial - Campione & Walrath  Unlocking Active Server Pages - Christoph Wille Reference Books

41 http://www.easytools.com/festival. zip  www.perl.org  www.activestate.com  www.w3c.org  developer.netscape.com  www.javasoft.com  www.microsoft.com/iis/default.asp  www.microsoft.com/iis/evaluating/guides /whitepapers/aspwp.htm  www.microsoft.com/msdn World Wide Web


Download ppt "zip Developing browser based applications [SysReader Programmers Festival ‘97] T.N.C.Venkata Rangan Vishwak Associates."

Similar presentations


Ads by Google