Solved

Using methods from client Active X controls

Posted on 1998-09-09
3
181 Views
Last Modified: 2013-12-25
After using the <object id="Alarm" classid="clsid:6262D3A0-531B-11CF-91F6-C2863C385E30" width="923" height="461"> to create an object, I want to use methods of the object to set values in the object.  Can this be done?  If so how?

I've tried the following code to no prevail.

<object id="Alarm" classid="clsid:6262D3A0-531B-11CF-91F6-C2863C385E30" width="923"
height="461">
</object>
<%
    Alarm.Cols = 10
%>
Get the following error
Microsoft VBScript runtime error '800a01a8'

Object required: 'Alarm'

Keith
0
Comment
Question by:kjsmith3
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 28

Expert Comment

by:sybe
ID: 1854891
I am afraid you try to mix server side script (ASP) with client side objects. You can't. Client side scripts/objects run in the browser on the client's machine, server side scripts/object run on the webserver machine.

If you want to access client-side ActiveX control methods, you'll have to use client side script:

<script language="VBScript>
code for client

<script>
0
 

Author Comment

by:kjsmith3
ID: 1854892
I was afraid of this.  Could you give a little code snipit which shows the use of an object with client-scripting where methods from the object are being used?
0
 
LVL 28

Accepted Solution

by:
sybe earned 50 total points
ID: 1854893
<object id="Alarm" classid="clsid:6262D3A0-531B-11CF-91F6-C2863C385E30" width="923" height="461">
</object>

<script language="VBScript>
Alarm.Cols = 10
<script>

Of course it depends on the object with methods and properties you can access with scripting. Some are read-only.

But with this code you won't get the error 'Object required'.


0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need help deploying my first MVC.Net app with a SQL Server backend 3 44
replica website 2 70
Make a website not indexable by google 6 36
Replace value 2 53
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question