HighDots Forums  

Re: accedere ad activex da javascript

Javascript (Italian) Il linguaggio JavaScript (it.comp.lang.javascript)


Discuss Re: accedere ad activex da javascript in the Javascript (Italian) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gerolamo
 
Posts: n/a

Default Re: accedere ad activex da javascript - 03-03-2008 , 05:15 AM






"Gerolamo" ha scritto
Quote:
Salve a tutti.

stavo cercando di accedere a un controllo activex (scritto da me)
tramite javascript, ma non ci riesco.
Ovviamente la soluzione è venuta da se non appena ho postato qui

Quel che ho fatto:

<script language="javascript">
function doScript()
{
var obj = document.getElementById("ImageViewer1");
obj.imageURL=frm.txt.value;
}
</script>

Ma soprattutto nel componente .net:

using System.Runtime.InteropServices; //aggiunta
namespace TiffImageViewerNS
{
[ComVisible(true)] // aggiunta
public partial class ImageViewer : UserControl
{
[...]


Certo... non ho ancora ben capito perchè, ma intanto funziona.

Già che ci sono (anche se in effetti è OT):
qualcuno mi sa spiegare perchè il controllo .NET mi viene caricato
se proviene da un url in "intranet locale" ma non se è in "siti
attendibili",
a parità di impostazioni delle 2 aree?

Grazie

--
Gerolamo



Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.