Everything You Want To Know About Script But Were Afraid To Ask… Mark Carroll Drew Lytle Script Technologies Microsoft Corporation.

Slides:



Advertisements
Similar presentations
Websydian Anne-Marie Arnvig Manager, Websydian Communications & Relations.
Advertisements

DIGIDOC A web based tool to Manage Documents. System Overview DigiDoc is a web-based customizable, integrated solution for Business Process Management.
Introduction to .NET Framework
Tahir Nawaz Introduction to.NET Framework. .NET – What Is It? Software platform Language neutral In other words:.NET is not a language (Runtime and a.
Building International Applications with Visual Studio.NET Achim Ruopp International Program Manager Microsoft Corporation.
CF and JSP/Servlets Developed originally by Robi Sen For the CF UnderGround II Seminar, Apr 2001 Edited and enhanced by Charlie Arehart (Robi had an emergency.
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Web Forms and ASP.NET Programming Right from the Start with Visual Basic.NET 1/e 12.
Languages for Dynamic Web Documents
IIS Technologies.
ASP.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
DT211/3 Internet Application Development Active Server Pages & IIS Web server.
Building Enterprise Applications Using Visual Studio ®.NET Enterprise Architect.
AJAX Presented by: Dickson Fu Dimas Ariawan Niels Andreassen Ryan Dial Jordan Nielson CMPUT 410 University of Alberta 2006.
ASP Tutorial. What is ASP? ASP (Active Server Pages) is a Microsoft technology that enables you to make dynamic and interactive web pages. –ASP usually.
ACTIVE X By Ethan Huang. OUTLINE What is ActiveX? Component of ActiveX Why ActiveX? ActiveX and Java Security Issue.
Kashif Jalal CA-240 (072) Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 2 of…
Create Windows ® Applications with.NET Allan Knudsen.NET Developer Evangelist Microsoft.
1 CS6320 – Why Servlets? L. Grewe 2 What is a Servlet? Servlets are Java programs that can be run dynamically from a Web Server Servlets are Java programs.
Mgt 240 Lecture Website Construction: Software and Language Alternatives March 29, 2005.
Slide 1 of 9 Presenting 24x7 Scheduler The art of computer automation Press PageDown key or click to advance.
Microsoft Exchange Exchange is more than just Electronic Mail The server that embraces Internet standards and extends rich messaging and collaboration.
Server Side Scripting Norman White. Where do we do processing? Client side – Javascript (embed code in html) – Java applets (send java program to run.
WEB329 ASP.NET: A Lap Around the New Enhancements for Web Developers in Microsoft Visual Studio 2005 Omar Khan Lead Program Manager Web Platform and Tools.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
1 Modular Software/ Component Software 2 Modular Software Code developed in modules. Modules can then be linked together to produce finished product/program.
Visual Basic: An Object Oriented Approach 12 – Creating and using ActiveX objects.
Beyond DHTML So far we have seen and used: CGI programs (using Perl ) and SSI on server side Java Script, VB Script, CSS and DOM on client side. For some.
ASP.NET INTRODUCTION INTO وزارة التربية و التعليم العالي كلية العلوم و التكنولوجيا قسم علوم الحاسوب و تكنولوجيا المعلومات اعداد الاستاذ: عبد الله محمد.
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
Data-Enabled Web Sites: Classibooks.com & Internet Database Technologies Colin Fukai April 4, 2000 Gonzaga University.
3/8/00asp00 1 Active Server Pages from Microsoft Nancy McCracken Northeast Parallel Architectures Center at Syracuse.
The PI-ProcessBook Family Customizable views of your data - Anywhere you want them.
Obsydian OLE Automation Ranjit Sahota Chief Architect Obsydian Development Ranjit Sahota Chief Architect Obsydian Development.
CIS 375—Web App Dev II Microsoft’s.NET. 2 Introduction to.NET Steve Ballmer (January 2000): Steve Ballmer "Delivering an Internet-based platform of Next.
WEB 304 An Overview of ASP.NET and Windows Workflow Foundation Kashif Alam Program Manager Developer Division Microsoft Corporation.
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
ASP Introduction Y.-H. Chen International College Ming-Chuan University Fall, 2004.
VBScript Microsoft Visual Basic: Scaleable Solutions Visual Basic  Best tool for distributed client/server solutions  Powerful, robust,
DEV-5: Introduction to WebSpeed ® Stephen Ferguson Sr. Training Program Manager.
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
IS 4506 Interactive Clients & Servers.  Overview Fat Client versus Fat Server Spectrum of Web content formats Active Server Pages Active Server Page.
Lecture Note 1: Getting Started With ASP.  Introduction to ASP  Introduction to ASP An ASP file can contain text, HTML tags and scripts. Scripts in.
1 Geospatial and Business Intelligence Jean-Sébastien Turcotte Executive VP San Francisco - April 2007 Streamlining web mapping applications.
.NET Enterprise Services COM+ 1.5 麥超俊 Bobby Mak 架構技術推廣經理開發工具暨平台推廣處台灣微軟股份有限公司.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
Active Server Pages (ASP), also known as Classic ASP or ASP Classic, was Microsoft's first server-side script engine for dynamically generated web pages.
Active Server Pages Server-Side Scripting and Client-Side Scripting.
ASP.NET in Definition: 1.ASP.NET is a web application framework developed and marketed by Microsoft to allow programmers to build dynamic web sites,
Client-side & Server-side Scripting ©Richard L. Goldman August 5, 2003 Requires PowerPoint 2002 or later for full functionality.
Building High Performance, Robust Server Applications with Internet Information Server 5.0 Van Van IIS - Program Manager Microsoft Corporation.
An Introduction to JavaServer™ Pages Prepared by Nicole Swan.
ASP.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
An Introduction to JavaServer™ Pages Prepared by Nicole Swan.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
ASP. ASP is a powerful tool for making dynamic and interactive Web pages An ASP file can contain text, HTML tags and scripts. Scripts in an ASP file are.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
Out Look 1.Introduction 2. Guiding Principles of Windows DNA 3. Development Technologies 4. DNA - Architecture for Distributed Applications 5. Client Environments.
.NET Mobile Application Development XML Web Services.
ASP Syntax Y.-H. Chen International College Ming-Chuan University Fall, 2004.
7-1 Active Server and ADO Colorado Technical University IT420 Tim Peterson.
Tutorial 10 Programming with JavaScript. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Learn the history of JavaScript.
Glink for Java: applet, application and an API for integrating access to Bull, IBM, UNIX and Minitel systems with your Java based e-business applications.
Introduction to ASP.NET development. Background ASP released in 1996 ASP supported for a minimum 10 years from Windows 8 release ASP.Net 1.0 released.
A S P. Outline  The introduction of ASP  Why we choose ASP  How ASP works  Basic syntax rule of ASP  ASP’S object model  Limitations of ASP  Summary.
Active Server Pages v.s. Java Server Pages Presenters: Lan Guo Qunying Fan Pei-Xun Wu Date:
Introduction to ASP By “FlyingBono” 2009_01 By FlyingBono 2009_01
Introduction to JSP Liu Haibin 12/09/2018.
Module 1: Getting Started
Web Development Using ASP .NET
Presentation transcript:

Everything You Want To Know About Script But Were Afraid To Ask… Mark Carroll Drew Lytle Script Technologies Microsoft Corporation

What This Presentation Is About…  The core elements of Script Architecture overview Architecture overview Script Engines - new features in Microsoft ® Visual Basic ® Scripting Edition and JScript ® Script Engines - new features in Microsoft ® Visual Basic ® Scripting Edition and JScript ®  Associated Script technologies Scriptlets Scriptlets Remote Scripting Remote Scripting Windows ® Scripting Host Windows ® Scripting Host  Developing with Script Debugging Debugging

What This Presentation Is Not About…  Hosting Script in your application See Chris Weight’s session (Win10) See Chris Weight’s session (Win10)  Developing a Script Engine See Mark Hammond’s session (Tools08) See Mark Hammond’s session (Tools08)

The Core Elements Of Script

InternetExplorerInternetInformationServicesWindowsScriptingHostOtherApplications Microsoft VBScript MicrosoftJScript 3rd Party Engines ActiveX Scripting Interfaces Architecture Overview  Open architecture for Script languages Microsoft provides VBScript, JScript Microsoft provides VBScript, JScript Others available - PERL, REXX, Python, etc. Others available - PERL, REXX, Python, etc.  Open architecture for integrating Script into your application

Script Engines: What’s New  Version 5 engines new for Windows NT ® 5.0  VBScript Classes Classes With With Eval/Execute Eval/Execute Regular Expressions Regular Expressions GetRef (Function Pointers) GetRef (Function Pointers)  JScript Exception Handling Exception Handling ECMA-262 (Since V3) ECMA-262 (Since V3)

Script Engines: What’s New  Performance Faster in the browser Faster in the browser Faster on the server (3x faster on Windows NT 5.0) Faster on the server (3x faster on Windows NT 5.0)  DCOM Support  Script Encoding Protects against prying eyes Protects against prying eyes Develop, encode, deploy Develop, encode, deploy Decoding supported in engines Decoding supported in engines Supports ASP, HTML, SCT, JScript, VBScript Supports ASP, HTML, SCT, JScript, VBScript

Let’s See Some Of These Cool New Engine Features!

Associated Script Technologies

Scriptlets  COM Components written in Script and XML Any interface (e.g., automation) Any interface (e.g., automation)  Can be used anywhere COM can be used Client - Internet Explorer, WSH, any COM application Client - Internet Explorer, WSH, any COM application Server - Internet Information Server, any COM application Server - Internet Information Server, any COM application  Transaction (MTS) aware  Runtime support in Windows NT 5.0, downloadable for Windows 95/98/ Windows NT 4.0

Scriptlets XML-based object definition  Methods Use the method tag Use the method tag  Properties Use property tag Use property tag <get/><put/></property>  Events User Event tag User Event tag

Scriptlets Registration  ProgID is the only required attribute  CLSID is created at registration time if not supplied  Or use a moniker “scriptlet:URL” <registration progid='MyFactorial.Scriptlet' progid='MyFactorial.Scriptlet' classid='{bb7f2d60-6dbb-11d1- 8cac-00a0c90fffc0}' classid='{bb7f2d60-6dbb-11d1- 8cac-00a0c90fffc0}' description='A simple test object' version="1.0"></registration>

Scriplets Example <scriptlet><registration progid='MyFactorial.Scriptlet' progid='MyFactorial.Scriptlet' classid='{bb7f2d60-6dbb-11d1-8cac-00a0c90fffc0}' classid='{bb7f2d60-6dbb-11d1-8cac-00a0c90fffc0}' description='A simple test object' description='A simple test object'version="1.0"></registration><public> </method></public> function myFactorial(n) { if (typeof(n) != "number") if (typeof(n) != "number") return NaN; return NaN; return (1 <= n) ? n*myFactorial(n-1) : 1; return (1 <= n) ? n*myFactorial(n-1) : 1;}</script></scriptlet>

Scriptlets Type library support  Tools Support Provides auto complete in Visual InterDev ™ /Visual Basic/Delphi Provides auto complete in Visual InterDev ™ /Visual Basic/Delphi Allows Browsing of Objects Allows Browsing of Objects Eases integration with Visual J++ ® and Visual C++ ® Eases integration with Visual J++ ® and Visual C++ ®  Helps with MTS integration  Generate Type Library Menu option Menu option Object Model support Object Model support

Response.Write “Hello World!” </Script> Dim objCurr Dim objCurrObjCont Set objCurr = CreateObject("MTxAS.AppServer.1") Set objCurrObjCont = objCurr.GetObjectContext() GetRequest = objCurrObjCont("Response").Write(”Hello MTS”) Scriptlets Transaction specifics  Use the AppServer object provided by MTS  Native ASP support

How About Showing Us One Of These Scriptlets?

Scriptlet Summary  COM Components in XML + Script  Transaction support allows: Scalability Scalability Interoperability with any COM component Interoperability with any COM component  Scriptlet Wizard makes it easy

Remote Scripting  Remote Scripting provides richer Web client/server communication No need for a submit No need for a submit Call server functions asychronously Call server functions asychronously Works in Internet Explorer and Netscape Works in Internet Explorer and Netscape  Combined with DHTML and Scriptlets, allows sophisticated user experience in the browser

Microsoft Internet Information Server Web browser client.htm client.htm rs_client.htm RSExecute(url,”VCC”, 4225,MyCallback); function MyCallback(co) { r = co.return_value; } server.asp <% function VCC(CC) { … return true; } RSDispatch();%> rs_server.asp server.asp true true Remote Scripting In action

Remote Scripting  Provided in source form  Runs cross-platform - some functions require ECMA 262 compliant engines  Java proxy enables Remote Scripting to work with many browsers - so you can use it on the server without limiting reach

Pulling It All Together…

Windows Scripting Host v2  Batch files come to Windows! WSH 1.0 shipped with Windows 98 and Windows NT 4.0 Option Pack WSH 1.0 shipped with Windows 98 and Windows NT 4.0 Option Pack  WSH 2.0 ships in Windows NT 5.0, downloadable for other platforms  WSH 2.0 addresses top 4 user requests Includes Includes Type Library Type Library Multiple Engines Multiple Engines Tools support Tools support

WSH In Person…

Developing With Script

Debugging Script  Debugging support Light-weight debugger in Windows NT 5.0 Light-weight debugger in Windows NT 5.0 Full featured debugging with Visual InterDev 6.0 Full featured debugging with Visual InterDev 6.0  Defined ways of integrating debugging Host Debugging Interfaces (smart) Host Debugging Interfaces (smart) Script Engine Interfaces (simple) Script Engine Interfaces (simple)  Smart host examples Internet Explorer, Internet Information Services Internet Explorer, Internet Information Services

Debugging Script Demo

Summary  Script is everywhere  Script is simple  Script is powerful  Script is light-weight  Script is integrated into Windows NT 5.0!

Where To Get More…  Other PDC Sessions Hosting - Chris Weight (Win10) Hosting - Chris Weight (Win10) Developing a Script Engine - Mark Hammond (Tools08) Developing a Script Engine - Mark Hammond (Tools08)  The Web… sitebuilder/magazine sitebuilder/magazine Clinick’s Clinic on Scripting Clinick’s Clinic on Scripting  Feedback - msnews.microsoft.com public.scripting.* public.scripting.*

Call To Action  Integrate Script  Start using v5 features  Use the Script technologies in Wondows NT 5.0 VBScript, JScript VBScript, JScript Scriptlets Scriptlets Windows Scripting Host Windows Scripting Host  Attend other scripting sessions: Active Scripting Engines (TOOL08) Active Scripting Engines (TOOL08) Hosting Script Engines (WIN10) Hosting Script Engines (WIN10)