How to call DLL in Javascript

How to call DLL in Javascript

am 17.11.2009 13:28:24 von Peter

Hi All,

I want to call dll in javascript

I tried the following script, but i got the error message 'ActiveXObject
is undefined'
(Note : i have the feedback.dll in the same path only)












Regards
Peter.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: How to call DLL in Javascript

am 17.11.2009 13:28:40 von Ashley Sheridan

--=-+XXmcWe5eVK+QeU5RLHV
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Tue, 2009-11-17 at 17:58 +0530, Peter wrote:

> Hi All,
>
> I want to call dll in javascript
>
> I tried the following script, but i got the error message 'ActiveXObject
> is undefined'
> (Note : i have the feedback.dll in the same path only)
>
>
>
>
>
>
>
>
>
>
>
>
> Regards
> Peter.
>


I'm not even sure this is possible, and if it is, you know it would only
work on Internet Explorer yeah?

Thanks,
Ash
http://www.ashleysheridan.co.uk



--=-+XXmcWe5eVK+QeU5RLHV--

Re: How to call DLL in Javascript

am 17.11.2009 14:01:36 von Phpster

I don't think you can di this with client side js. It would have to
run outside the security sandbox and that is a bug no-no.

If the dll is in the server, you could potentially call the server via
Ajax to instantiate the dll and have it's output sent to the browser

Bastien

Sent from my iPod

On Nov 17, 2009, at 7:28 AM, Peter wrote:

> Hi All,
>
> I want to call dll in javascript
>
> I tried the following script, but i got the error message
> 'ActiveXObject is undefined'
> (Note : i have the feedback.dll in the same path only)
>
>
>
>
>
>
>
>
>
>
>
>
> Regards
> Peter.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: How to call DLL in Javascript

am 17.11.2009 14:24:45 von Nathan Rixham

Peter wrote:
> Hi All,
>
> I want to call dll in javascript
>
> I tried the following script, but i got the error message 'ActiveXObject
> is undefined'
> (Note : i have the feedback.dll in the same path only)
>
>
>
>
>
>
>
>
>
>
>
>
> Regards
> Peter.

usually .dll should be running client side not server side

jscript and javascript are two different beasts based on ecmascript;
you'll be wanting to get some JScript (microsofts own version) help for
this.. http://msdn.microsoft.com/en-us/library/7sw4ddf8%28VS.85%29. aspx
but as somebody else mentioned, you won't get it working on all browsers
AFAIK.. so running DLL on server side and calling wrapper functions via
ajax is more appropriate.

an asp.net forum or suchlike will probably yield a more useful response

regards

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

How to call a vc++ dll from a HTML form

am 18.11.2009 05:51:50 von Peter

--------------020609060104050402000801
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Thanks to All.

I want to call a vc++ dll from a HTML form. The dll need to be triggered
on a button click in the HTML form.

I want to access the dll from the client end(javascrript) without using
the server.

Tell me whether its possible to call dll directly or through any interface ?

Please provide me your valuable inputs to solve this issue.

Regards
Peter

Nathan Rixham wrote:
> Peter wrote:
>
>> Hi All,
>>
>> I want to call dll in javascript
>>
>> I tried the following script, but i got the error message 'ActiveXObject
>> is undefined'
>> (Note : i have the feedback.dll in the same path only)
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> Regards
>> Peter.
>>
>
> usually .dll should be running client side not server side
>
> jscript and javascript are two different beasts based on ecmascript;
> you'll be wanting to get some JScript (microsofts own version) help for
> this.. http://msdn.microsoft.com/en-us/library/7sw4ddf8%28VS.85%29. aspx
> but as somebody else mentioned, you won't get it working on all browsers
> AFAIK.. so running DLL on server side and calling wrapper functions via
> ajax is more appropriate.
>
> an asp.net forum or suchlike will probably yield a more useful response
>
> regards
>
>

--------------020609060104050402000801--

Re: How to call a vc++ dll from a HTML form

am 18.11.2009 06:24:55 von James Mclean

On Wed, Nov 18, 2009 at 3:21 PM, Peter wrote:
> Thanks to All.
>
> I want to call a vc++ dll from a HTML form. The dll need to be triggered on
> a button click in the HTML form.
>
> I want to access the dll from the client end(javascrript) without using the
> server.
>
> Tell me whether its possible to call dll directly or through any interface ?
>
> Please provide me your valuable inputs to solve this issue.

What does this have to do with PHP?

Oh, and it's a bad idea. Don't do it...

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: How to call a vc++ dll from a HTML form

am 18.11.2009 11:43:36 von Ashley Sheridan

--=-X4QYTX3yS022NwiJTXRN
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Wed, 2009-11-18 at 15:54 +1030, James McLean wrote:

> On Wed, Nov 18, 2009 at 3:21 PM, Peter wrote:
> > Thanks to All.
> >
> > I want to call a vc++ dll from a HTML form. The dll need to be triggered on
> > a button click in the HTML form.
> >
> > I want to access the dll from the client end(javascrript) without using the
> > server.
> >
> > Tell me whether its possible to call dll directly or through any interface ?
> >
> > Please provide me your valuable inputs to solve this issue.
>
> What does this have to do with PHP?
>
> Oh, and it's a bad idea. Don't do it...
>


Like I mentioned in the other thread you opened where you were asking
the same question, if this is at all possible, it will only work on
Internet Explorer, if at all. If you look at the browser statistics held
by the W3C you'll notice that IE usage is in the decline as well.

Also, if this is possible, users will be asked whether they want this
insecure DLL running ramshod all over their system, and I'd hazard a
guess that the majority of users would decline such an offer.

Just out of curiosity, what does your DLL actually do? I'd be highly
suspect of any site wanting to do something like this, and would feel no
qualms about reporting it as having highly suspicious activity.

Thanks,
Ash
http://www.ashleysheridan.co.uk



--=-X4QYTX3yS022NwiJTXRN--