Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / May 2008

Tip: Looking for answers? Try searching our database.

Hide an ActiveX on an HTML page

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
PhilTheGap - 29 May 2008 16:27 GMT
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
George Ter-Saakov - 29 May 2008 18:05 GMT
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.

> Hello,
>
[quoted text clipped - 7 lines]
>
> Philippe
Steven Cheng [MSFT] - 30 May 2008 03:25 GMT
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:
msdnmg@microsoft.com.

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

--------------------
>From: "George Ter-Saakov" <gt-nsp@cardone.com>
>References: <38A300FC-94C7-42C6-8868-9A9784C3F54A@microsoft.com>
>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.
[quoted text clipped - 19 lines]
>>
>> Philippe
PhilTheGap - 30 May 2008 08:21 GMT
Hi Steven and George,
> Thanks for George's input.
>
[quoted text clipped - 5 lines]
> any elements in the div will also be hidden. You can try it to for activex
> object also.
It works... !

Thank you

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.