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 / Languages / JScript / January 2004

Tip: Looking for answers? Try searching our database.

silent assertion of assembly existance on client machine

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rea Peleg - 20 Jan 2004 21:47 GMT
Hey
I need to assert from within a web page that an assembly was previously
installed (and registered) on its hosting machine.
I want to attempt to create an instance of that assembly inside a java or vb
script
method and decide according to the results whether it had been installed.

The following line of code works in javascript but generates a warning
massage
I want to avoid (regarding activeX involvement in the page...) :

var myObj = new ActiveXObject("myRegAsem.regAsemTest");

Is there a silent method I can use instead??

TIA
Rea
bruce barker - 21 Jan 2004 01:07 GMT
if the user has allowed active/x controls you can use the object tag
instead, then in javascript check the readyState. as .net assemblies can
take a long time to load in IE, you will need to use a timer to check the
readyState. aslo you clients must have framework 1.1 already installed.

note: even though your assembly is installed, it permissions will still be
restricted to internet mode (no disk access, etc)

> Hey
> I need to assert from within a web page that an assembly was previously
[quoted text clipped - 13 lines]
> TIA
> Rea
Rea Peleg - 22 Jan 2004 17:18 GMT
Thanks Bruce
I do not need to load this assembley to ie, just check that it exists
on the web page's hosting machine.
Can I use the <object> tag to refer to this kind of an assembly ?
Also I do not know where it had been installed on that computer.
I need to get the path to it from the registry.
Thanks again
Rea
> if the user has allowed active/x controls you can use the object tag
> instead, then in javascript check the readyState. as .net assemblies can
[quoted text clipped - 22 lines]
> > TIA
> > Rea
bruce barker - 22 Jan 2004 20:59 GMT
with IE you can only load an assembly, you have no access to the registry or
disk. when you install your assembly, you can also install a simple active/x
control (marked safe for scripting), and use this as a flag the assembly has
been loaded.

otherwise you will have to write an unmanaged active/x control that the page
downloads which checks for the assembly (like when you go tot the microsoft
update page).

neither will work if the user turns off active/x support in IE.

-- bruce (sqlwork.com)

> Thanks Bruce
> I do not need to load this assembley to ie, just check that it exists
[quoted text clipped - 32 lines]
> > > TIA
> > > Rea

Rate this thread:







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.