Connecting Tech Pros Worldwide Help | Site Map

calling a dll function in Javascript

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 20th, 2005, 11:23 AM
Cathryn Lindner
Guest
 
Posts: n/a
Default calling a dll function in Javascript

I am building a web application. On the form, I have a checkbox that
needs to display a drop down list when checked. The drop down list is
populated by a function in a dll that is registered in my project. How
do I call this function in javascript?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

  #2  
Old July 20th, 2005, 11:24 AM
W d'Anjos
Guest
 
Posts: n/a
Default Re: calling a dll function in Javascript

Cathryn,

JavaScript can't (and shouldn't) call DLLs due to security issues.

You should be looking for a server side solution, ie: ASP, JSP, PHP, CGI, etc.

-Wagner

Cathryn Lindner <cathrynl@diligenz.com> wrote in message news:<3f9d3f31$0$195$75868355@news.frii.net>...[color=blue]
> I am building a web application. On the form, I have a checkbox that
> needs to display a drop down list when checked. The drop down list is
> populated by a function in a dll that is registered in my project. How
> do I call this function in javascript?
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it![/color]
  #3  
Old July 20th, 2005, 11:26 AM
Laurent Bugnion, GalaSoft
Guest
 
Posts: n/a
Default Re: calling a dll function in Javascript

Hi,

W d'Anjos wrote:
[color=blue]
> Cathryn,
>
> JavaScript can't (and shouldn't) call DLLs due to security issues.[/color]

JavaScript is just a language. It can (and should) do what the platform
allows.

Client-side JavaScript can very well instantiate ActiveX DLLs in
platforms allowing it (IE) and in relaxed security environments. There
is nothing wrong with that.

Of course, if the OP was a bit more explicit about her environment, it
would help. I suspect that she is talking about a server-side solution
anyway, but it's hard to be sure.
[color=blue]
> You should be looking for a server side solution, ie: ASP, JSP, PHP, CGI, etc.
>
> -Wagner[/color]

Maybe she already is. Don't accept "client-side" when you hear "JavaScript".

Because, yes, JavaScript is not only used on the client. It's also my
language of choice on ASP.

Laurent
--
Laurent Bugnion, GalaSoft
Webdesign, Java, javascript: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch

  #4  
Old July 20th, 2005, 11:26 AM
Mark Preston
Guest
 
Posts: n/a
Default Re: calling a dll function in Javascript

On Wed, 29 Oct 2003 10:52:31 +0100, "Laurent Bugnion, GalaSoft"
<galasoft-LB@bluewin_NO_SPAM.ch> wrote:
[color=blue]
>W d'Anjos wrote:
>[color=green]
>> JavaScript can't (and shouldn't) call DLLs due to security issues.[/color]
>
>JavaScript is just a language. It can (and should) do what the platform
>allows.
>[/color]
Which would be fine, except its platform is EXPLICITLY "any computer
system using the Javascript process engine". In other words, it has to
rely on an use NONE of the OS-specific or hardware-specific features
of ANY particular system.

Hence it cannot and SHOULD NOT be able to use a DLL under Windows.[color=blue]
>
>Client-side JavaScript can very well instantiate ActiveX DLLs in
>platforms allowing it (IE) and in relaxed security environments. There
>is nothing wrong with that.
>[/color]
That is a feature of the IE version of the Javascript engine. It
happens also to be allowed on the Mozilla engine (whose name I can't
recall offhand, but has something to do with monkeys) so is available
in Netscape, Mozilla, Firebird and so on.

Provided, of course, they are running on Windows. It is an ADDED
feature and not a STANDARD feature - and indeed has been the cause of
much argument during development since, strictly speaking, it should
not be allowed but has very good uses for compatibility.
  #5  
Old July 20th, 2005, 11:26 AM
Lasse Reichstein Nielsen
Guest
 
Posts: n/a
Default Re: calling a dll function in Javascript

Mark Preston <usenet@noemailaddress.co.uk> writes:
[color=blue]
> On Wed, 29 Oct 2003 10:52:31 +0100, "Laurent Bugnion, GalaSoft"
> <galasoft-LB@bluewin_NO_SPAM.ch> wrote:[/color]
[color=blue][color=green]
> >JavaScript is just a language. It can (and should) do what the platform
> >allows.[/color][/color]
[color=blue]
> Which would be fine, except its platform is EXPLICITLY "any computer
> system using the Javascript process engine".[/color]

*The* Javascript process engine?!?
And where is this explicit quote from?

Can you tell me what the name "Javascript" covers? Please be precise.

(Me, I vote for "Javascript" meaning what Netscape Corp. says it
means. All other implementations of ECMAScript+DOM are at best
"Javascript compatible", only they won't call it that in front of an
end user.)

/L
--
Lasse Reichstein Nielsen - lrn@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
  #6  
Old July 20th, 2005, 11:26 AM
Jim Ley
Guest
 
Posts: n/a
Default Re: calling a dll function in Javascript

On 29 Oct 2003 15:31:43 +0100, Lasse Reichstein Nielsen
<lrn@hotpop.com> wrote:
[color=blue]
>(Me, I vote for "Javascript" meaning what Netscape Corp. says it
>means.[/color]

They're only licensees of the trademark though, and they are very
careful to only use JavaScript. They also do not complain about uses
of the word to describe other implementations (including microsoft
support site often and I can't believe they'd let that one go)
[color=blue]
> All other implementations of ECMAScript+DOM are at best
>"Javascript compatible", only they won't call it that in front of an
>end user.[/color]

I'd say javascript is any ECMAScript implementation - and
implementations that preceeded it.

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/

  #7  
Old July 20th, 2005, 11:26 AM
Lasse Reichstein Nielsen
Guest
 
Posts: n/a
Default Re: calling a dll function in Javascript

jim@jibbering.com (Jim Ley) writes:
[color=blue]
> I'd say javascript is any ECMAScript implementation - and
> implementations that preceeded it.[/color]

That is one, reasonable, definition.

With that definition, there is nothing explicitly preventing a
Javascript implementation from accessing Windows DLL files :)

/L
--
Lasse Reichstein Nielsen - lrn@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.