Error In Running Batch File?
Jul 30, 2010
I want to create a form where I can choose a local file and the batch file will print it. The function is to print whichever file I chose.Here is the code of printpage.html:
Code:
<html>
<head>
[code]....
View 4 Replies
ADVERTISEMENT
Apr 9, 2009
i am not able to compiled a file from java script to java class.Now its clear and working fine..now i can convert a java script file to java class.But now i am facing 1 more problem.i want to run that java class in IntelliJIdea.but its runnig with no error and not getting the out put.This is the converted java class for printing "HelloWorld".
import org.mozilla.javascript.*;
import org.mozilla.javascript.optimizer.OptRuntime;
public class Hello extends NativeFunction
[code]....
View 2 Replies
View Related
Jul 23, 2005
I have a batch-file (*.bat) which logon the client to our server, including
printer and drive mappings.
Now I want to replace the batch-file with a script for the windows scripting
host, because I want the users to enter their username and password, and
then the script should make the mappings suitable to the username...
I lookd for the WSH and VBSCRIPT and JSCRIPT, but I didn't get any usable
information!
Is it possible, to write such a script? Or does the WSH not support this
feature?
View 1 Replies
View Related
Aug 16, 2011
I have this file:
IPToned.js
// ==UserScript==
// @name IPToned[code]...
I drag and drop it into Firefox (Ubuntu) and it opens it as if it were a txt file. I want it to make the alert so I can get to coding.
View 11 Replies
View Related
Jul 30, 2010
i have a requirement like, i need to search the xml file using xpath expression.
for that, first i need to load the xml file into javascript function using the below line of code.
function loadXMLDoc(dname) {
if (window.XMLHttpRequest) { for ie 7+,all
xhttp = new XMLHttpRequest();
alert('entered in method--if');
[Code]....
i am able to load the xml file in all the browsers except IE7,IE8. i am getting an error as "ACCESS DENIED". and the error i am getting the error at line, xhttp.open("GET", dname, false);
View 7 Replies
View Related
Oct 9, 2010
I have a lot of things that are running on the $document.ready() area and was wondering if I can put them all into an external js file and call 1 function from the $(document).ready() call
here is what I have
Code:
<script type='text/javascript'>
$(document).ready(function(){
$(".editphrase").editable('index.php?m=language&a=changephrase', {
[code]....
I would just like to call 1 function from the $(document).ready() call that lies in an external .js file that will process the code above so I don't have so much clutter in the page. This is what I would like. I have tried it but it doesn't work.
Code:
$(document).ready(function(){
cms_init();
});
View 3 Replies
View Related
Oct 25, 2010
I want to encode and decode a javascript file in which many javascript function running.
i fount lot of function decode and encode but not worrkking well .
View 3 Replies
View Related
Jul 18, 2009
I am developing a web page . For this i am using Javascript embedded in html. In the application ,the user can input data via interfaces in the page which is chosen and read from a master xml file , the chosen data then needs to be stored and saved in a xml file.I have designed the web page in FrontPage.
Now the problem i face is while trying to save the output xml file i get error Permission Denied , error code 0 . This happens when i try to open the page in browser IE 6.0 SP2.I am using DOM parser methods for doing the xml manipulations/savings etc.urprisingly this works in another machine.Also can i use the all of the same javascript code if i want to run it in an IIS. Do i have to do some changes to make it server side javascript code.
View 4 Replies
View Related
Nov 21, 2011
I'm having two issues: First, is there an easier way for my showValue function to display the image file name without running a bunch of if statements? I tried doing something like document.getElementById('imgFile').value = imgArray[n]; but that did not seem to work.
Second, I'm trying to have the image file name change in my textbox when I click any button. I've accomplished this with onblur, but that only works if I click on the textbox. I'd like it to just change automatically.
[Code]...
View 5 Replies
View Related
Aug 5, 2011
This code is supposed to batch transfer options between selects. It works flawlessly for single values, but when I select multiple options, all of them get deleted, but only one transferred.
<html>
<head>
<title></title>
<script type="text/javascript">
[Code].....
View 1 Replies
View Related
Aug 2, 2011
I have a table that gets served off to a 3rd party site. Each row has "track" and "hide" checkboxes ... I need to save/update these settings as the user updates their settings so I can call them back later on future visits.
(cookies are not an option... because that is too easily lost and there could be thousands of settings over time)
So, I am leaning toward a AJAX POST using Jquery. Rather than submit on every change... I would like to store the settings in JavaScript and then batch submit every 30 seconds or on page unload. I have most if this working... it is the saving of the data and then batch submission code that I am after.
Let me give you the use case and a scenario:
Table with 100 rows and each row has "track" and "hide". Each row may be associated with one "subject" and multiple rows may have the same subject ... so when you track or hide... it tracks multiple rows (highlights, checks their boxes, and grabs the subject from a row field) OR it "hides" multiple rows based on their subject.
All that is working. (Yes!)
Now, because they could be clicking quickly through... they might track then "untrack" the same subject or hide then "unhide" the same subject all within a very short period of time.
I don't want all those AJAX calls!
So, I need some sort of data storage for the "subjects" that puts them in "track" and "hide" datasets ... removes them out if undone ... and occasionally submits whatever the queued up actions are (if any).
Also, there may be settings grabbed on page load that need undone (the track and hide setting grabbed from the DB that pre-dated that visit) ... so it may not as simple as removing from a data set... there should be an explicit "untrack" & "unhide" submission in those cases to update the DB.
View 1 Replies
View Related
Mar 17, 2007
I have this Applet-hosted Socket connection to my server and in an
ONevent/function I am retrieving all these lovely rows from the server and
inserting them into the Select-List. (The on screen appearance of the Select
List grows for the first 5 rows then the scroll bar appears if there's
more). So far so good. . .
The problem is that none of the rows I'm inserting appear on the screen
until I have RETURNed from my function; so If it ended up being 1000 rows
then the user sees nothing until they're *all* processed :-( Is this an
IE6-only thing? Does it happen with Version 7 or with other browsers? This
is disgusting!
Is there an option to set somewhere?
Do I have to hack/force some sort of event (with coresponding ONfunction)
and then RETURN from my function and have the ensuing function call me back
and repeat till eof?
All I want to do is see my rows grow and counter increment in the
select-list (or table) as they appear; is that really too much to ask? Is
IBM3270 emulation crap really as far as we've got?
View 16 Replies
View Related
Oct 14, 2005
I have the following HTML file:
---
<html>
<head>
<title>Test</title>
<script type="text/javascript" src="test.js"></script>
</head>
<body>
Hi There. <a href="javascript:doit()">Click Me</a>
</body>
</html>
---
The following js file:
--
function doit() {
alert("I did it");
}
--
Running htm file locally (double click) gives me security warning (XP
SP 2) but if I then select "allow script to run" everything works fine.
But when I serve page through IIS (localhost) I get a syntax error line
4 char 4. Of course there is no line 4 in the js file.
This HAS to be something simple I am missing but I have tried:
- with and without language attribute in script tag
- relative and absolute paths for the js file
- with and without Mime type for js set in IIS
Only remaining thing I guess it could be is file permissions but
everything has execute on it as far as I can see.
View 7 Replies
View Related
Aug 18, 2011
I have a slideshow plugin and there is a function in it called stopAutoplay(). This is called when I click on the pre-defined pause button in the slideshow, so it stops.
If I switch between the slideshows(Slideshow 1 2 3) the slideshow is getting messier and messier because it starts many slideshows at the same time and the plugin gets confused what to show.
I figured if I click on the pause button before I switch to another slideshow it works fine. Therefore what I would like to achieve now is to call stopAutoplay() somehow before I switch to the new slides.
How can I call stopAutoplay() from the html file when I click on one of the slideshow 1 2 3 buttons?
I've tried the codes in green below but they don't work.
fadeSlideShow(); plugin pause function part:
stopAutoplay = function(){
clearInterval(intval);
intval = false;
[Code]....
If there is a better solution let's say to kill everything before the new slideshow appears it's even better. Although I've tried die(), empty(), detach(), remove(). I hoped remove() would help cause as I read it's suppsed to remove everything but for some reasons it doesn't...
View 3 Replies
View Related
Dec 4, 2011
I am working on a "pirate translator" project and I am having an interesting issue here.on part 3 of the project we are to use code given to us to make it work, and the code appears to be broken
HTML Code:
<!doctype html>
<html>
<head>
[code]....
View 9 Replies
View Related
Sep 30, 2010
I am trying to get this function to work, it looks great in theory but I keep getting the error message file is not defined. What have I done wrong?The code is:
<head>
<script type="text/javascript">
function loadXMLDoc(File,ID){
[code]....
View 3 Replies
View Related
Oct 26, 2009
I got an error while using the following java script in a php file...
php code:
javascript code:
Now, i just wanted to call a popup using javascript, it is working fine in firefox, but giving error in internet explorer on my end...(but, i uploaded it on the server and asked my friend to check it.. on his side.. it not working even on firefox...)
I dont understand what is the problem... if it is related to popup blocker.. then why it is working on my computer.. my popup blocker is working fine i checked all the settings...
View 1 Replies
View Related
Sep 30, 2010
I have the following script which should work in theory, however I get the error message that file is not defined. I have tried playing around with using variables and I can not work out how to correct this.
My code is:
<head>
<script type="text/javascript">
function loadXMLDoc(File,ID){
if (window.XMLHttpRequest) {
[Code]....
View 3 Replies
View Related
Mar 12, 2011
We are trying to dosome effects andwork properly in Firefox and Chrome but not in IE,loading the page everything is ok, but when I click the ID for me to run the function,get errorDetalles de error de pgina web Agente de usuario: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)Fecha: Sun, 13 Mar 2011 03:39:17 UTCMensaje: No se pudo obtener la propiedad position . Argumento no v¡lido.Lnea: 7909Car¡cter: 5C³digo: 0URI:
View 1 Replies
View Related
Apr 3, 2009
I'm reading a text file, manipulating the string that I've read, and then writing to a new text file called temp. The error that I am getting is basically reading past the end of the file.
function SpaceFileEntries()
{
fso = new ActiveXObject("Scripting.FileSystemObject");
[code]....
View 1 Replies
View Related
Feb 20, 2010
The website gets this error when I try to open a certain file; Form is not defined on line 24 of the file below.
[Code]...
View 5 Replies
View Related
May 25, 2011
I have written the following code to read contents of a text file using FileReader object of HTML 5 for Google Chrome.
<script>
function handle_files(files) {
var i;
if (checkBrowser("Chrome")) {
for (i = 0; i < files.length; i++) {
file = files[i];
var reader = new FileReader();
ret = [];
reader.onload = function (e) {
console.log(e.target.result)
}reader.onerror = function (stuff) {
console.log("error", stuff)
console.log(stuff.getMessage())
}text = reader.readAsText(file[i]);
alert(text);
}}}
</script>
<input type="file" multiple="multiple" onchange="handle_files(this.files)">
Unfortunately, the variable text always displays as undefined. Everything above the line text = reader.readAsText(file[0]); works fine. Is there any other solution to read a text file using HTML5/JavaScript on Chrome?
View 5 Replies
View Related
Mar 4, 2009
I have a creating_hi.php file that simply says hi
Code:
I'm getting this error: Error: c is null Source File:[url] Line: 42
View 2 Replies
View Related
Jul 30, 2009
I am trying to save a xml file .I get Permission Denied error. However in another machine the same file is getting saved without any error.
Both machines have same Internet(medium) , Local Intranet(Medium-low), Restricted Site(High), Trusted Site(low) level settings.
In the code i read some data from a master xml file and try to write this read data into a new xml file .While saving i get this error.
The code is:
function saveXML() //Creates XML File
{
var TristateFalse = 0;
var ForWriting = 2;
[Code].....
View 1 Replies
View Related
May 1, 2007
actually there's no error in the code only that is only made to check for one input field and my form has 3 image upload fields, the original is:
<form enctype="multipart/form-data" action="action.php" method="post" onSubmit="if(!this.img1.value.match(/.jpg$/i)){alert('Must be JPG file');return false};return val(this)">
<input type="file" name="img1">
</form>
This works great but what modifications should have to be able to check multiple file input fields?
View 3 Replies
View Related
May 10, 2011
I am trying to get the JavaScript drop down menu from this site to work with the Internet Explorer browser:Simple JavaScript Drop Down Menu with timeout effect v2.0 � Scripts and Tricks � JavaScript DHTML TutorialsI can download the page to my computer, then open the page from the folder into which it wasdownloaded with the IE browser, and and it works fine.But however, if I: 1). rename the page or 2). copy and paste all of the Html code on the page and then paste it in to a new file and then try to open it in the IE browser I get this message:To help protect your security, Internet Explorer has restricted this webpage from running scripts or ActiveX controls that could access your computer. Click here for options..
View 1 Replies
View Related