473,320 Members | 1,744 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Hide an ActiveX on an HTML page

Hello,

I woulf like to hide an activeX object in a aspx page. The ActiveX is
decalred statically in the HTML code, and I'e tried to set the html visible
"property" to "false" in the javascript page_load function (in the aspx
page). It didn't do anything although the code is executed correctly (I
check with an alert...).

Do you see why ?

Philippe

Jun 27 '08 #1
3 3912
There is no "visible" property in HTML. It's called display and you need to
set it to none.

Wrap your ActiveX in DIV tag
<div style="display:none">
.....
</div>

then see if ActiveX still going to be visible

George.

"PhilTheGap" <or****@noemail.noemailwrote in message
news:38**********************************@microsof t.com...
Hello,

I woulf like to hide an activeX object in a aspx page. The ActiveX is
decalred statically in the HTML code, and I'e tried to set the html
visible "property" to "false" in the javascript page_load function (in the
aspx page). It didn't do anything although the code is executed correctly
(I check with an alert...).

Do you see why ?

Philippe

Jun 27 '08 #2
Thanks for George's input.

Hi Philippe,

I agree with George that to hide a certain html element on html page, a
good approach is using the <divwith css style set to "display=none", then
any elements in the div will also be hidden. You can try it to for activex
object also.

#display Description:
http://webdesign.about.com/od/stylep...lspdisplay.htm

#Show/Hide a Div Content Layer
http://www.willmaster.com/blog/css/s...oating-div.php

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: "George Ter-Saakov" <gt****@cardone.com>
References: <38**********************************@microsoft.co m>
Subject: Re: Hide an ActiveX on an HTML page
Date: Thu, 29 May 2008 13:05:03 -0400
>
There is no "visible" property in HTML. It's called display and you need
to
>set it to none.

Wrap your ActiveX in DIV tag
<div style="display:none">
....
</div>

then see if ActiveX still going to be visible

George.

"PhilTheGap" <or****@noemail.noemailwrote in message
news:38**********************************@microso ft.com...
>Hello,

I woulf like to hide an activeX object in a aspx page. The ActiveX is
decalred statically in the HTML code, and I'e tried to set the html
visible "property" to "false" in the javascript page_load function (in
the
>aspx page). It didn't do anything although the code is executed
correctly
>(I check with an alert...).

Do you see why ?

Philippe


Jun 27 '08 #3
Hi Steven and George,
"Steven Cheng [MSFT]" <st*****@online.microsoft.coma écrit dans le message
de news:5S**************@TK2MSFTNGHUB02.phx.gbl...
Thanks for George's input.

Hi Philippe,

I agree with George that to hide a certain html element on html page, a
good approach is using the <divwith css style set to "display=none",
then
any elements in the div will also be hidden. You can try it to for activex
object also.
It works... !

Thank you

Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Newbie | last post by:
Hi all, I have some activeX code that I use to get the local computer name. (I don't think this is possible using ASP from my research). The rest of my code is ASP. I'd like to know how to...
7
by: NewbieJon | last post by:
I am attempting to send the variable "sComputerName" from my ActiveX script to "GetInfo.asp" using javascript. (Having been advised this is the way to get my ActiveX variable into my ASP script) ...
11
by: Dave | last post by:
I have this sample HTML code: <html> <head> <script type="text/javascript"> var WinHttpReq = new ActiveXObject("WinHttp.WinHttpRequest.5.1"); </script> </head>
0
by: Ike | last post by:
I have an Activex Control created in VB6, which, displays no problem on any machine I have, but, on some machines of others, it does not. All machines are running either XP or Windows 2000, and all...
18
by: DartmanX | last post by:
Is there a simple way to determine if someone using Internet Explorer has completely disabled ActiveX controls? Jason
3
by: Jeffery Franzen | last post by:
Anyone know where the documentation is regarding Activex controls in asp web forms? I'm using VS.NET 2002 enterprise and am trying to use Activex controls in vb.net web form app. I do the add...
1
by: Frank | last post by:
Short Version of Question: Can anyone provide an example of how I should embed the ActiveX and license, and then use it in a function?
1
by: kret | last post by:
Hi, this is my first post so first of all I would like to say hello :) Now getting to my problem. In my job I have to create an ActiveX control in .NET 1.1 that can be lunched from IE....
3
by: =?Utf-8?B?R3JlZyBN?= | last post by:
Hello, I'm running an asp.net, intranet web application using .net framework 1.1 on IIS5.1 / 6.0. Through the web application, I would like to press a button on the web page, have another window...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.