referencing .NET framework namespaces in client side java script

R

Rea Peleg

Hello
I'd like to use .NET framework namespaces in client side java script.
For example i'd like to import System.Activator, in order to call
Activator.CreateInstance() method inside a client side java script function.
This function should executed in the client's browser!
10x
Rea
 
R

Ray Cassick \(Home\)

First, I am not a Java wiz but I don't think that you can do this.

Second, why would you want to? Unless you had completes control over the
client side install (Intranet or something like that) you can't guarantee
that the client will have the framework installed.
 
R

Rea Peleg

Thanks alot
I've tried using ActiveXObject() but it is raising a security warning I want
to avaoid.
I need some kind of a silent method to check at client side wether my .NET
assemblie
had been previously installed.
Thanks again
Rea
 
R

Ray Cassick \(Home\)

You are going to run into similar issues like you did with ActiveX when you
try to use .NET. There are still security implications to deal with. Most
users systems that have .NET installed are not going to allow un-trusted
..NET code to run from an Internet site. CAS (Code Access Security) is simply
not set up by default for that and your component will most likely have
security exceptions to deal with.

What is it that you are trying to do, maybe someone here can offer an idea
on how to do it without problems.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top