473,378 Members | 1,594 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Using javascript for scripting?

How would I go about making a windows application extensible with JavaScript?

Thanks. :)
Feb 14 '09 #1
7 1508
Frinavale
9,735 Expert Mod 8TB
JavaScript is a web scripting language. It is run in web browsers to provided wonderful client side enhancements that can make your web pages much more interactive.

JavaScript cannot be used in windows applications.
Mar 9 '09 #2
Okay.

Is there some other scripting language for .NET similar to JavaScript?
Mar 10 '09 #3
PRR
750 Expert 512MB
If you are developing windows application then you have rich functionality in all controls like mousehover, mouseclick etc... As asp.net code executes on server, this kind of functionality( client click, onmousehover) cannot be provided... therefore client side scripting is used....Imagine have to postback to server on "mousehover", the user will have to wait for ever for any functionality... To achieve this, "something" that runs on client side is used... Javascript is that "something" ..
As for windows application the code executes on the client side therefore rich features like "mousehover" are executed on client... There is no use of JavaScript...

Sample windows application on button MouseHover event ...
Expand|Select|Wrap|Line Numbers
  1. private void button1_MouseHover(object sender, EventArgs e)
  2.         {
  3.             MessageBox.Show("Mouse over me "+((sender)as Button).Text);
  4.         }
  5.  
Mar 10 '09 #4
I understand that there is no JavaScript for windows applications and I know how JavaScript works in a web page. I also have much knowledge in mouse events and I know how to handle them.

What I was asking was: Is there a scripting language that can be used in .NET apps that is similar to JavaScript. (In syntax.)
Mar 11 '09 #5
PRR
750 Expert 512MB
Well ...i didn't get your question right then.... in addition to java script you can also use VBScript
Mar 11 '09 #6
Frinavale
9,735 Expert Mod 8TB
I didn't actually understand the question either apparently.
Every language is different. C# uses curly braces and semicolons in it's syntax, so I guess it's closer to JavaScript than VB.NET; but, C# is a completely different animal (with keywords such as Class and functions that specify return types etc).

-Frinny
Mar 11 '09 #7
Take a look at IronPython.
Mar 15 '09 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: John Davis | last post by:
Just wonder if <%@ Language="JAVASCRIPT" %> exists?? Since JavaScript is used in client-side scripting, but <% ... %> is used in server-side scripting. It sounds doesn't make sense. But I saw...
8
by: Martin | last post by:
Hi, I've got a funny and wanted to know if there is a fix out there for this. I display a jsp inside a frame that monitors the database and reloads itself via the setTimeout js function. To...
2
by: sdvoranchik | last post by:
We have an application that contains links that run javascripts to create pages in a separate frame. When these links open an external site, it causes the javascripts to no longer function. When...
14
by: John Bentley | last post by:
Note this is crossposted to comp.lang.javacript and microsoft.public.dotnet.scripting. After some Googling and FAQing my understanding of these terms is, crudely: Javascript (3 different...
20
by: Andrew Poulos | last post by:
If I have a page with a bunch of content and some javascript in the head how do I notify the javascript disabled users that enabling javascript would enhance their experience. At the moment I'm...
1
by: Peter Petrillo | last post by:
The Access development group here at this company has exported its reports in xml format from Access 2003. I have no influence on how they have created them. I received the following files xm...
4
by: korund | last post by:
Is there any difference to read & write to windows Registry with VBScript or JavaScript? Both scripting languages have similar syntax. What is preferable use for this? thanks.
69
by: Peter Olcott | last post by:
Does JavaScript represent its controls internally as Microsoft Windows controls, or does it build them from scratch like Java?
1
by: Andyza | last post by:
With reference to the ASPFAQ 2161 article - http://classicasp.aspfaq.com/general/how-do-i-prompt-a-save-as-dialog-for-an-accepted-mime-type.html Does the 'Content-Disposition' code work if the...
35
by: Dan Rumney | last post by:
Hi all, I've been writing Javascript for quite a while now and have, of late, been writing quite a lot of AJAX and AJAX-related code. In the main, my dynamically generated pages are created...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
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...
0
isladogs
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...
0
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...
0
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,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
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...
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.