Way to know what Windows service pack version is from the browser? - javascript

Is there a way to find what service pack is installed from the browser? It doesn't look like it's in the System.Web.HttpBrowserCapabilities in asp.net. I need a way to warn users that they need to update to XP Service Pack 3 before proceeding and installing some software.

Not directly, no. Unless it's in the browser's UA, there's no way of detecting it without some kind of plugin.

If you can use VBSCRIPT you can get what you are looking for.
The WMI class Win32_OperatingSystem has the properties ServicePackMajorVersion, ServicePackMinorVersion, Name and Version.
Try samples here: WMI Tasks
Hope this can help

Related

Is it possible to embed virtual machines that are created in VMware ESXi in a browser via something like RDP using javascript?

I have done some searching, and I have found a few libraries that seem to handle RDP in the browser, but I haven't seen anything that seemed straight forward with connecting a VM that is created in ESXi to these? Is this possible?
It seems like the answer is yes, because things like vSphere allow you to connect to the VMs using RDP in the browser, but it doesn't seem that VMware offers a product or library that can handle this.
It should be possible. However, it's worth noting that the way vSphere allows you to connect to the console is through the VMRC (VMware Remote Console) and not RDP.
There was an SDK to manage these sessions at one point: https://www.vmware.com/support/developer/vmrc/vmrc_sdk_60_releasenotes.html

Get Windows username in Google Chrome with NaCl nexe

I face the following challenge: How can I retrieve the current logged in user ID in JS with Chrome on Windows?
My current research results are:
Natively this is not possible
Active-X is not supported by Chrome
Most likely it is doable by writing a NaCl nexe Plugin
A I am starting NaCl nexe development at zero knowledge level I would be grateful if someone could provide a template or something like that. Or even better: Perhaps someone who faced the same problem already has written such a plugin and is willing to share his knowledge and code?
Thanks in advance
Michael
If it's not possible in JS, then it isn't possible with NaCl either. NaCl plugins are not allowed to access native system APIs (e.g. win32), in order to protect the user of the browser.

How to use Seed in Windows, Mac, Android to write standalone applications in JavaScript?

Use Javascript language with Seed looks great. But how do you use it in Windows, Mac, Android?
Is there any port available for those?
I was trying to test them in cross-platforms where in my Gnome it works only, such as: http://git.gnome.org/browse/seed-examples/tree/
#!/usr/bin/env seed
Gtk = imports.gi.Gtk;
Gtk.init(Seed.argv);
var window = new Gtk.Window({title: "Example"});
window.signal.hide.connect(Gtk.main_quit);
window.show_all();
Gtk.main();
It might not be the answer you are looking for, but the seed wiki states that seed is for the "GNOME platform", it's not coming with a cross platform GTK all-in-one package.
If you want to do lightweight and interpreter-centric cross platform development with javascript, you may want to look at Mozilla's rhino (probably coupled with swt, I found that pretty easy - did a couple of scripts that work on osx/win/linux if the machine has java and js.jar), or node.js (if no gui is required, I never had luck with node graphical bindings in a cross platform fashion) - node-webkit from Intel's opensource department also looks interesting.
If Android is a must and you care to give up interpreters, you may try as3 (the flex sdk is "free" and now we have captive runtime air apps) or neko/haxe, they are ecmascript dialects, but of course there are quite a lot of possibilities; these are the ones I looked at earlier. Hope it helps and sorry if it did not.
Szabolcs Kurdi is right but there is a solution to get javascript to work with gui in Windows.
its called app.js and is a highly developed nodejs module. (Windows, Mac, Linux)
appjs.org
check it out if you like. i personaly use it and love it.
you even can use webkits javascript debugger IN it by calling window.frame.openDevTools();
and you can forward module methods into the dom of it.
besides using appjs you could use .hta files in windows in order to create forms using javascript.
i would not recommend this though since microsoft jscript is very limited in debuggability, performance and support.
you also need to keep in mind that gnome uses javascript in its core in multiple ways so it has api's to native methods that you will not find in microsoft's jscript.
in order to get something similar i would srsly recommend you nodejs since you can extend it with thousands of modules (while appjs is one of them).

Check if JDK is installed through javascript

The topic-title speaks for itself.
Is it possible to check if the client has JDK installed trough javascript?
I know that it is possible to check the os and the browser but is that possible too?
You can check whether the client has java enabled with window.navigator.javaEnabled().
Note that:
The return value for this method
indicates whether the preference that
controls Java is on or off - not
whether the browser offers Java
support in general.
For more information, have a look at https://developer.mozilla.org/en/DOM/window.navigator.javaEnabled
I am presuming you have an Applet or a Web Start application which you want to run.
For those cases Oracle provides the Java Deployment Toolkit JavaScript which helps to detect Java versions and also offers methods to automatically write applet tags and Web Start launcher buttons.
As you can see at http://download.oracle.com/javase/6/docs/technotes/guides/jweb/deployment_advice.html#deplToolkit (also contains link to downloading .js file) it can retrieve installed JREs or send the user to installation page of latest one. This might be what you are looking for.
Notes:
This applies to detecting JREs. JDKs aren't used by the browser so there isn't a need to detect them.
It might not work because of privacy settings or other browser/JRE configuration options.
I don't think you can. It would require javascript to access information beyond your browser. Maybe there's some browser specific solutions.
Its not possible to know the version of Java through javascript .If its possible then it will be a security breach.

Can I use JavaScript to check for installed software on a client machine?

Is there any way to check the installed software on a client machine using JavaScript?
For example: I want to check on the client machine whether the 'Epson JavaPOS ADK' is installed or not.
You cannot do that using Javascript, you don't have access to the local file system.
Impossible
Due to security issues.
But you may still be able to detect any installed software if it installs any browser accessible ActiveX controls. So if you'd try to create an instance of it and see of you actually get an instance of it it has the software. But this is totally software dependent.
That would be extremely dangerous for the client so, no. You can't check nor access the file system. Nor with JavaScript, nor with Java Applets nor with Flash.

Categories

Resources