Hide an ActiveX on an HTML page

P

PhilTheGap

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
 
G

George Ter-Saakov

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.
 
S

Steven Cheng [MSFT]

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 <div> with 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/styleproperties/p/blspdisplay.htm

#Show/Hide a Div Content Layer
http://www.willmaster.com/blog/css/show-hide-floating-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:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.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/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
 
P

PhilTheGap

Hi Steven and George,
Steven Cheng said:
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 <div> with 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top