Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Suppress security warning until ActiveX control is clicked?

Reply
Thread Tools

Suppress security warning until ActiveX control is clicked?

 
 
Ben Katz
Guest
Posts: n/a
 
      07-29-2003
I created an ActiveX control that displays the security warning the
first time the user sees the control (as it should)

I wonder if there's a way to suppress the security warning until a new
user elects to use the activeX control (by clicking it, etc.)

That way, people who never intend to use it will not be bothered by
pop-ups, but people who want to use it will of course have to give the
OK the first time.

Here's what I tried:
1. Using the <object declare...> syntax to cache the activex control
but not display it till a phony image was clicked on. (In this trial,
the control simply appeared as normal)
2. Using JavaScript to insert the <object> tag into a span tag's
inner or outer html when a phony image was clicked on. (In this trial,
the span's html refused to change without error when I clicked.)
3. Using this code:

<SPAN ONCLICK="replace(this);">Click Here for activeX</SPAN>
<SCRIPT LANGUAGE="JavaScript">
function replace(item)
{
var elem = document.createElement("OBJECT");
elem.setAttribute("id", "PNR1");
elem.setAttribute("codebase", "http://www.....");
elem.setAttribute("classid", "CLSID:....");
item.appendChild(elem);
}
</SCRIPT>


The third one almost worked, as it made the "failed activex control"
square appear on the document. But, it did not load my control.

Any other ideas?
 
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
Suppress 'qualifiers discarding' warning for strstr() lovecreatesbea...@gmail.com C Programming 3 11-28-2007 10:50 PM
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
Re: distutils:How suppress warning message? (about nonstandardinstall path) Ian Bicking Python 0 10-21-2003 11:03 PM
distutils:How suppress warning message? (about nonstandard install path) Christian Seberino Python 0 10-21-2003 10:37 PM



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