This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes How to embed activex in HTML page Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "How to embed activex in HTML page" Watch "How to embed activex in HTML page" New topic
Author

How to embed activex in HTML page

Shiva Mohan
Ranch Hand

Joined: Jan 05, 2006
Posts: 465
My given assignement question is

You Add masked edit controls to the Customer Data page
Now you will add ActiveX controls to the Customer Data page.
Open the Customer Data page with Notepad.
Add a row to the table for Phone and Fax information.
Retrieve the class ID for the Microsoft Masked Edit control.
This control is installed with Visual Basic. If it isn't installed on your computer, the class ID is: C932BA85-4374-101B-A56C-00AA003668DC.
Add two <OBJECT> tags to the Customer Data page for the Phone and Fax masked edit controls. For each <OBJECT> tag:
Set the CLASSID parameter to the class ID of the masked edit control.
Set the ID parameter to Phone or Fax, respectively.
Set the width to 120 and the height to 25.
For each <OBJECT> tag, set the CODEBASE parameter:
Create a Controls directory in the root of the Main Street Market Web site, and copy the masked edit control, MSMask32.ocx, from the HTML_Course\Online_HTML_Tutorial\Labs\Lab2.3 directory to the Controls directory.
Set the CODEBASE parameter of the <OBJECT> tag to point to this file.
If you are unsure of the syntax for the <OBJECT> tag, look at this solution code:
Initialize the following properties with PARAM tags.
Property
Value
Appearance
1
BorderStyle
1
Mask
(###) ###-####

Note In Lab 4, you will change the Mask, based on which country is selected.
The two masked edit controls should look like the following:
Phone ( ) -
Save your changes to the Customer Data page.


My workout on this:



I was expecting the box display with ( )- and it waits for the user to enter data.
but the box inside just has red x.why.please help me on this.This is for intranet.
Where am i going wrong? Thanks for your time in advance.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to embed activex in HTML page
 
Similar Threads
How to Load the applet only if the activeX component could not be found?
Active X Controls
Embeding a video with a dynamic "src"
HELP!!! java and activex Control
how long the video is played?