Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Hide an ActiveX on an HTML page

Reply
Thread Tools

Hide an ActiveX on an HTML page

 
 
PhilTheGap
Guest
Posts: n/a
 
      05-29-2008
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

 
Reply With Quote
 
 
 
 
George Ter-Saakov
Guest
Posts: n/a
 
      05-29-2008
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" <> wrote in message
news:38A300FC-94C7-42C6-8868-...
> 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



 
Reply With Quote
 
 
 
 
Steven Cheng [MSFT]
Guest
Posts: n/a
 
      05-30-2008
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/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:
.

==================================================
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->
>References: <38A300FC-94C7-42C6-8868->
>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" <> wrote in message
>news:38A300FC-94C7-42C6-8868-...
>> 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

>
>
>


 
Reply With Quote
 
PhilTheGap
Guest
Posts: n/a
 
      05-30-2008
Hi Steven and George,
"Steven Cheng [MSFT]" <> a écrit dans le message
de news:...
> 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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to open html page in python resource file? ActiveX and Javascript addEventListener? Options navasia@gmail.com Python 1 11-22-2010 06:27 AM
ActiveX control in python vs ActiveX control in vb 6 (piece of code) vml Python 0 08-22-2007 09:57 AM
ActiveX apologetic Larry Seltzer... "Sun paid for malicious ActiveX code, and Firefox is bad, bad bad baad. please use ActiveX, it's secure and nice!" (ok, the last part is irony on my part) fernando.cassia@gmail.com Java 0 04-16-2005 10:05 PM
[HIDE LAN] Hide a part of hosts into the LAN at VPN users? Paolo Bresi Cisco 1 04-04-2005 02:41 PM
Help needed passing paramters to ActiveX control in HTML page Bob Hanson ASP .Net 2 03-02-2005 12:00 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57