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
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:
I have an excel doc. which is updated by many people through the day. I would like this to be converted to a web page every hour, and then saved to a directory where it can be pulled onto a website.
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);
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
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.
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 .
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.
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.
In a MySQL database I have the following entry: "Fruits & Vegetables". I retrieve this to display on a webpage using PHP, convert to JSON, pass to client, process using JavaScript.
The PHP code that is passed to the client is: Code: $z = rawurlencode(json_encode($reqVar)); echo $z; where $reqVar is the array of results queried from database, including one that is "Fruits & Vegetables".
When it's passed to client using AJAX, the JavaScript to process the string (decode it and then convert from JSON string to object using Prototype framework) is. Code: var response = decodeURIComponent(transport.responseText) var respObj = response.evalJSON(true);
I can then display it in page. But when I pass it back to the PHP script using AJAX using the exact same process in reverse, at some point & is converted to & and if I re-enter it into the database it looks like "Fruits & Vegetables". How can i prevent this conversion? Does the order in which I convert to and from JSON and encode/decode need to be changed?
Whenever execute the following code, the URL that is formed has "?" before my name and an "=" before my value (so the URL would be "[URL]"). I need the URL formatted so that a "+" is in front of the name and a ":" (colon) to be before the value (i.e. formatted like "[URL]"). Is there a way to change this behavior? $.ajax({ url: lansaUrl('proc', 'func'), global: true, cache: false, type: "GET", data: ({"acct": object.value}), dataType: "json", success: function(result){ $("p#customerInfo").innerHTML += " "+result; }, error: function(xhr, desc, exceptionobj) { alert(xhr.responseText); }});
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.
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.
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...
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
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){
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...
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) {
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:
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");
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?
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..