Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

xxxconhd, www...xxxcon, xx3ooo com, event ID 1078, simba cs, smtp-server: 421 4.3.2 Connection rate limit exceeded., wwwxxx.c, www.xxx.con, mdazadmd00@gmai.com, wwwxxx

Links

XODOX
Impressum

#1: How to call DLL in Javascript

Posted on 2009-11-17 13:28:24 by 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)


<HTML>
<HEAD>
<script type='text/javascript' language='javascript'>
function comEventOccured()
{

try{
var myobject;
myobject = new ActiveXObject("feedback.dll");
}catch(e){
alert(e.description);
return false;
}

}
</script></head>
<body>
<input type=button value="Call the DLL" onClick="comEventOccured()">
</body>
</html>



Regards
Peter.

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

Report this message

#2: Re: How to call DLL in Javascript

Posted on 2009-11-17 13:28:40 by 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)
>
>
> <HTML>
> <HEAD>
> <script type='text/javascript' language='javascript'>
> function comEventOccured()
> {
>
> try{
> var myobject;
> myobject = new ActiveXObject("feedback.dll");
> }catch(e){
> alert(e.description);
> return false;
> }
>
> }
> </script></head>
> <body>
> <input type=button value="Call the DLL" onClick="comEventOccured()">
> </body>
> </html>
>
>
>
> 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--

Report this message

#3: Re: How to call DLL in Javascript

Posted on 2009-11-17 14:01:36 by 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 <peters@egrabber.com> 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)
>
>
> <HTML>
> <HEAD>
> <script type='text/javascript' language='javascript'>
> function comEventOccured()
> {
>
> try{
> var myobject;
> myobject = new ActiveXObject("feedback.dll");
> }catch(e){
> alert(e.description);
> return false;
> }
>
> }
> </script></head>
> <body>
> <input type=button value="Call the DLL" onClick="comEventOccured()">
> </body>
> </html>
>
>
>
> 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

Report this message

#4: Re: How to call DLL in Javascript

Posted on 2009-11-17 14:24:45 by 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)
>
>
> <HTML>
> <HEAD>
> <script type='text/javascript' language='javascript'>
> function comEventOccured()
> {
>
> try{
> var myobject;
> myobject = new ActiveXObject("feedback.dll");
> }catch(e){
> alert(e.description);
> return false;
> }
>
> }
> </script></head>
> <body>
> <input type=button value="Call the DLL" onClick="comEventOccured()">
> </body>
> </html>
>
>
>
> 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

Report this message

#5: How to call a vc++ dll from a HTML form

Posted on 2009-11-18 05:51:50 by 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)
>>
>>
>> <HTML>
>> <HEAD>
>> <script type='text/javascript' language='javascript'>
>> function comEventOccured()
>> {
>>
>> try{
>> var myobject;
>> myobject = new ActiveXObject("feedback.dll");
>> }catch(e){
>> alert(e.description);
>> return false;
>> }
>>
>> }
>> </script></head>
>> <body>
>> <input type=button value="Call the DLL" onClick="comEventOccured()">
>> </body>
>> </html>
>>
>>
>>
>> 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--

Report this message

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

Posted on 2009-11-18 06:24:55 by James Mclean

On Wed, Nov 18, 2009 at 3:21 PM, Peter <peters@egrabber.com> 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

Report this message

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

Posted on 2009-11-18 11:43:36 by 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 <peters@egrabber.com> 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--

Report this message