Freelance Writing Jobs | Today's Articles | Sign In

 
Browse Sections

VB Script

VBScript and Java Applets
You can integrate the applets into your programs and directly use their capabilities from your script. It's very much like the ActiveX object integration model. There are some differences, such as the events that ActiveX provides, but there are also a lot of similarities.
Rich Textbox Control
RTF stands for rich text format; it was designed to create portable formatted documents that can be displayed on different systems.Creating a functional, even fancy, word processor based on the Rich Textbox control is quite simple.
MS Calendar Control
MS Calendar Control is a very convenient visual tool to display or choose a date including year, month, calendar day, and day of week.It is visible both at design time and at run time.
Popup Menu
Popup Menu control is used to create a popup menu when the user clicks a link, named control or image link with the mouse on a Web page. This control is used mostly for navigational purposes.
Timer Control
The Timer control belongs to the type of control that is not visually oriented. The timer control is not intended to be something the user sees; it is a building block for your scripts. Any action that should occur after a precisely specified interval can be implemented with a timer and the code you can associate with a timer expiration.
Chart Control
The Chart control works just like a chart in Excel or Lotos. You provide a matrix of numeric values, and a chart gives the graphical relationship between these values.
Animated Button and Preloader controls
Microsoft has made available a number of controls that you can use in your own VBScript HTML pages. Keep in mind that in order for these controls to work, it's up to the client (your reader) to install them on his or her machine. These controls are freely distributable and can be made available to people interested in seeing and using your implementation of the object on their machines.
Attributes for ActiveX objects
Some of the attributes for ActiveX objects aren't new to HTML. For instance, the ALIGN, BORDER,HEIGHT, HSPACE, VSPACE, and WIDTH attributes are used with the <IMG> tag. However, because the <OBJECT> tag is part of an advanced specification, it supports the advanced alignments and spacing techniques.
Inserting ActiveX Controls in the Web Page
Each ActiveX control has a set of properties and methods that can be set and reacted to. They are programmed just like any other object on the Web page. You set the properties of the control, and then your script reacts to messages sent by the user interacting with the objects in the browser.
Custom Controls in VBScript. Brief of ActiveX controls
An ActiveX control is different from a VBX or DLL because the control is registered with the operating system when it is installed. After an ActiveX control is registered, it can be used as a component by any application developed, using any one of many different development environments, including VBScript.
CGI basics
The CGI specification came from Rob McCool of Netscape Communications. At the moment, the specification is under the supervision of the World Wide Web Consortium (W3C-http://www.w3.org). The Win-CGI standard is a CGI standard supported by some Windows-based Web servers.
CGI and VBScript
Common Gateway Interface (CGI) is one of several ways you can use to add interactivity to your Web pages. CGI represents a simple protocol of communication between the Web forms and the programs that reside on the Web server. This is a quite different technology then VBScript which is included in the HTML file implemented on the client side
Link Object
The basic property of the link object is the length property, which returns the number of the links in the document. Each link is a member of the links array. Because the hyperlinks in a document are destinations, the link object's properties are identical to the properties of the location object; however, they are read-only.
Location Object
The Location object contains information about the current documents location and can be used to manipulate browser navigation. The Location object has no events.
Navigator Object
You can access information about the browser through the properties exposed by the navigator object. Please, note, all of its properties are read-only.
Document Object's Methods and History Object
The document object provides five methods, through which you can manipulate its contents. The most widely used is write method widely used for DHTML. The history object of browser is an invisible object that provides methods for navigating through the document's history. It provides the functionality of the browser's navigational buttons
Document Object
The document is the next (after window) object in the hierarchy of Internet Explorer. It represents the HTML page displayed on the browser's window or one of its frames. You have already used the document object applying the document.write method to write strings on the current document. This method enables you to create documents on the fly. You  use this object most often in programming your Web pages, and this section discusses its properties and methods in detail.
Methods of Window Object
The methods of window object determine how window object performs actions, such as how it displays a message or get input from the user. The most used window are alert, prompt, confirm, open, close, setTimeout, clearTimeout methods.
Working with objects
Using object, you are giving sufficient capabilities to your Web pages. Objects let you incorporate components into your Web page. And if you incorporate a component into your page, you can incorporate it into your script as well.
Generating HTML on-the-fly
One of the coolest features of VBScript is its capability to generate HTML on-the-fly. You can use the programming capabilities of VBScript to decide what should appear on the page and how it should appear. Then the script code can output the HTML for display within the browser window.
Ways to Attach Code to Events
The most common way to attach code to events is to join by underscore (_) the name of the object and the name of the event in the procedure description. There are 2 other ways to define event-driven procedures. The procedure can be defined within the tag of the object. For short sections of code,  Internet Explorer allows you to add  inline code in the tag defining the control. You can also write a