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! 6 17582
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 <ca******@diligenz.com> wrote in message news:<3f*********************@news.frii.net>... 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!
Hi,
W d'Anjos wrote: Cathryn,
JavaScript can't (and shouldn't) call DLLs due to security issues.
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.
You should be looking for a server side solution, ie: ASP, JSP, PHP, CGI, etc.
-Wagner
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
On Wed, 29 Oct 2003 10:52:31 +0100, "Laurent Bugnion, GalaSoft"
<galasoft-LB@bluewin_NO_SPAM.ch> wrote: W d'Anjos wrote:
JavaScript can't (and shouldn't) call DLLs due to security issues. JavaScript is just a language. It can (and should) do what the platform allows.
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. 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.
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.
Mark Preston <us****@noemailaddress.co.uk> writes: On Wed, 29 Oct 2003 10:52:31 +0100, "Laurent Bugnion, GalaSoft" <galasoft-LB@bluewin_NO_SPAM.ch> wrote:
JavaScript is just a language. It can (and should) do what the platform allows.
Which would be fine, except its platform is EXPLICITLY "any computer system using the Javascript process engine".
*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 - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
On 29 Oct 2003 15:31:43 +0100, Lasse Reichstein Nielsen
<lr*@hotpop.com> wrote: (Me, I vote for "Javascript" meaning what Netscape Corp. says it means.
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)
All other implementations of ECMAScript+DOM are at best "Javascript compatible", only they won't call it that in front of an end user.
I'd say javascript is any ECMAScript implementation - and
implementations that preceeded it.
Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/ ji*@jibbering.com (Jim Ley) writes: I'd say javascript is any ECMAScript implementation - and implementations that preceeded it.
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 - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.' This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: R.G. Vervoort |
last post by:
I am using a javafunction (onclick in select) in which i am calling a
function in php (thats why i send this to both php and javascript
newsgroups).
in the onclick i call the function...
|
by: Simula |
last post by:
I am developing an HTML javascript application and I want to preserve
state in a way that can be book-marked. I chose HTML anchors as a means
of preserving state. When the application changes...
|
by: Martin Feuersteiner |
last post by:
Dear Group
I'm using VB to write an aspnet application. I would like to call a
javascript function from within a VB Sub or VB Function, is it possible? My
code is something like this:
VB...
|
by: ukrbend |
last post by:
I'm new to Javascript and to html and am trying to make the following
code snippet work but it doesn't. It refuses to call the getPage()
function and I always get a 404 error. I know the code is...
|
by: Adam Smith |
last post by:
Hello,
How can I call or trigger an external javascript twice in a form?
I have
<script language="JavaScript" src="country_state.js"
name="Country_State">
<script type="text/javascript"...
|
by: Ajit Goel |
last post by:
Hi;
We have a Javascript function which I have been tasked to move to a
CSharp class. This javascript function uses Regular expression
extensively. This function has a string input parameter and...
|
by: moni |
last post by:
Hi,
I wanted to call a javascript function
function showAddress(address)
{
.....
}
from the aspx.cs file from the Gridview_RowCommand function
|
by: Memphis Steve |
last post by:
Is it possible to combine multiple javascipts into one file and then call that file from a linked URL in the head section of an XHTML file?
Here are the two scripts I want to use with the...
|
by: Sampat |
last post by:
Hi,
I wanted to know the performance of calling a function pointer v/s a
normal function call in javascript in a scenario where there are
multiple calls in the js to the same function. Please...
|
by: mrcheeky |
last post by:
Hi,
I'm stuck, but it's almost working!
From a html page, my javascript calls a server-side php script. The php reads a value from a server-side .txt file and passes it back as a javascript...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
| |