473,401 Members | 2,127 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,401 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 1509
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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
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?
1
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.