0
votes
0answers
7 views

call back in spring file upload

i have followed this to upload file to server. the file is getting uploaded but after uploading the file it gives the page name as the filename.extension.jsp and gives HTTP Status 404 here is the ...
-1
votes
1answer
43 views

How to download file using JavaScript/ExtJs?

In jsp i get file from BD and want to download it on client: <% String num = request.getParameter("param"); Statement sta = null; sta = conn.createStatement(); String fileName=""; String ...
1
vote
1answer
32 views

PrimeFaces: Get current column sort order in Javascript

I am currently trying to get the current order of columns in a PrimeFaces datatable whenever a user reorders them. Since the server-side event does not provide any parameters, I decided to use a ...
1
vote
3answers
42 views

Java custom tag with JS

I have custom tag which contains form with text input and submit. I want to validate this text input using JS, so my custom tag output should look like: <script type="text/javascript"> ...
0
votes
1answer
28 views

Primefaces handler to penult tab

I decided to use wizard component.link on this component I have condition that instead of checkbox "Skip to last" I should use button. If I press on this button it's ok, but when I go to penult tab I ...
0
votes
0answers
22 views

How to save event data into an xml file from dhtmlxscheduler

I need to save event data to an xml file.I need to do this using a java code.i am using html5. So from the javascript i need to call this java code and need to save event text,date and other details ...
0
votes
0answers
29 views

Google-Code-Prettify Doesn't Work for Me?

I was trying to programmatically create a HTML page, which had the syntax highlights. So I found this Javascript solution called Google-Code-Prettify and followed the instruction. Below is my code: ...
1
vote
0answers
13 views

java SingleInstanceService doesn't always work

I have a javafx application started from web start via a link on a webpage. The SingleInstanceService works fine when I have a running instance and try to open another one. But when no instances are ...
-1
votes
1answer
15 views

Downloading page with HtmlUnit throws exception

I am trying to download this page: http://ekw.ms.gov.pl/pdcbdkw/pdcbdkw.html using HtmlUnit 2.11. After GET on this page there is JS script computing and setting cookie and submitting the form. I ...
0
votes
0answers
17 views

Java check if external browser is done executing all scripts and ajax calls

I wish to create a function in Java that checks when a given web browser has completed executing javascript and ajax calls and is now ready to be tested. (Idea is that I am waiting for the page to ...
0
votes
1answer
20 views

jqGrid : show / hide columns while Updating and Inserting data

I am developing a web application using JSP & Servlet (IDE: Eclipse, Database: Oracle10). I am using jqGrid to display records in tabular format. code snippet: jQuery("#list10").jqGrid({ ...
0
votes
0answers
40 views

Javascript setting the value but not read on server side (the first time!)

I'm setting an hidden input value with few lines of javascript, and then I'm submitting the form. The value seems to be set correctly but it's not read by the controller. If I try a refresh, the ...
0
votes
1answer
25 views

Simply show pictures in webview using buttons (Android SDK)

Can someone please help? I just want to be able to open the picture when the button is pressed.. Eventually assign a new image to other buttons. I am testing this directly on the phone (GS3) and when ...
0
votes
0answers
22 views

How to get latitude and longitude of current location for blackberry not having GPS support

I need to find the current location for blackberry device not having GPS support. so Have a javascript code to find out latitude and longitude.I am able to get it using Google API but how to use it in ...
-1
votes
0answers
48 views

How secure are applets today? [closed]

Which security vulnerabilities of the mainstream web applications are of concern when we have an applet instead? E.g. is Cross Site Scripting an issue in the case of an applet? I would expect not ...
2
votes
0answers
32 views

Reading from dragged and dropped excel table

I'm working on struts 2 with hibernate 3. I've a functionality of Importing from excel doc in it. I found how to import from excel file once the file is uploaded by using the following code. try { ...
1
vote
0answers
19 views

Signed Applet - File dialog fails to open on any but local client

This is a persistent problem for me. I have tested locally a signed applet in a Tomcat deployment that allows local file access. I can open the file dialog box and create files locally on the same ...
4
votes
0answers
36 views

Can't call JNLP-deployed applet code from JavaScript

This is literally my first question about Java, so bear with me. I built a stupid simple applet class called HelloWorldApp.class from this code: import java.applet.Applet; class HelloWorldApp ...
1
vote
1answer
32 views

using javascript with zk

I'm trying to use javascript in a *.zul I have this script to create a list of objects(integers in this example, but it could be another type) <zscript> <![CDATA[ myList = new ...
0
votes
2answers
45 views

Kendo UI grid custom datasource URL

I have a comboBox called clientCCBox, I need a javascript that retrieves the selected option value, wich will be the client id, and then passes it on the kendo grid datasource read property as follow: ...
1
vote
1answer
34 views

Calling Java's Desktop.open method from Javascript - access denied java.awt.AWTPermission showWindowWithoutWarningBanner

I have a web app that needs to be able open a file locally on a client machine, with the ability to save the file after editing. The web app generates a document on the server in a folder that is ...
1
vote
2answers
44 views

How to prevent Basic Authentication form to popup

I have a application in Java, JSF that uses javascript to connect to a website that needs Basic authentication. The thing I want to accomplice is the exact same thing that happens when I type in ...
0
votes
2answers
34 views

Check javascript function is defined from java applet

I am developing a Java applet where I call a javascript function: boolean isAllowed = (boolean) win.eval("isPointMarkCreationAllowed()"); and I would like to check if that function exists, like we ...
1
vote
1answer
62 views

Version of Javascript

I have a Java based webapp which uses ~20 javascript files and CSS. As a standard practice, I have minified and bundled into groups which provided a lot of performance. Now I wish to add versioning ...
-1
votes
0answers
43 views

Java and Javascipt - Accessing Form data in Java Class? [closed]

I'm trying to find out how I can get information from a form on a webpage (HTML probably) and make it so I can access and use it in a Java class? I have a feeling I have to employ JavaScript. Looked ...
2
votes
1answer
42 views

Calling @JSFunction from JavaScript, TypeError: Cannot find default value for object

I'm calling a @JSFunction annotated method of a ScriptableObject The JavaScript file Target = Packages.com.acme.rhino.Target; function evaluate() { var t = Target(); t.addModifier("foobar", ...
-1
votes
0answers
13 views

How to install the FireBug in Rational Software Architect 7.5.5?

I'm using the IBM Rational Software Architect(RSA) 7.5.5. I need to debugg the javascript. So could you please tell me anyone how to add the 'FireBug' plugin in the RSA and to run in Internet Explorer ...
0
votes
6answers
50 views

Checkbox checkall/uncheckall (Quick help)

I wanted a check/uncheck all button using jquery or javascript. I have tried using examples available in net, but nothing worked for me. <li> <span class="checkbox unchecked"> ...
-3
votes
0answers
17 views

Recommend a good editor for writing Rhino scripts [closed]

I'd like something that can deal with the mixture of Java and Javascript - validates the syntax, formats the text, and offers code completion.
1
vote
2answers
49 views

How to obfuscate the src attribute of an audio tag

I am currently building a web application where I would be playing a user uploaded files, where the user uploaded files can be only streamed. The Problem is how would I hide or obfuscate the audio tag ...
0
votes
1answer
84 views

Serialize form inputs to JSON using Backbone.js

I'm working on RESTful application - I'm using Java on the server side and Backbone for the Front End. The 2 will communicate via JSON. My App has quite a few forms and I would like to: Serialize ...
0
votes
1answer
33 views

Kendo UI Simple Grid

I am struggling with using the JSP wrapper in Kendo UI. I checked their forum and found nothing. I checked stackoverflow and found nothing. I read through the APIs but could not find an answer to my ...
0
votes
0answers
48 views

play 2.1-rc2 java: handling javascript routes with fixed null parameters

I am using Play Framework 2.1-RC2 and I have a couple of routes that look something like: POST /resource SomeController.action(parent = null) POST /parent/:parent/resource ...
0
votes
0answers
89 views

selenium webdriver modal dialog java

I am testing my form and when I don't type needed data I get javascript alert in my web app that tells the user to enter missing data. I can't handle this with selenium because when I partially fill ...
-5
votes
1answer
32 views

Jslint in Java application [closed]

is there any good Jslint wrapper for Java? I found Jslint4java, but I would like to get more options. P.S. I mean, I need to test JS code with Java application. Thank you
0
votes
6answers
152 views

Why do people write --i? [duplicate]

Possible Duplicate: Incrementing in C++ - When to use x++ or ++x? I've seen things like i++ commonly used in, say, for loops. But when people use -- instead of ++, for some reason some tend ...
-7
votes
3answers
49 views

Running infinite print javascript in HTML [closed]

I'm trying to implement a script that will print an infinite amount of numbers onto the page. I know the java code for this: public static void main(String [] args){ int j = 1; for(int i = ...
0
votes
0answers
15 views

Display \ Draw XPDL

Which library should I use to display XPDL? Desktop is fine, Web is better. To be able to change the color, label and other properties dynamically Java \ .NET is preferred, other technologies are ...
1
vote
1answer
39 views
+50

How to call GWT'-CellTable-CustomEditTextCells api like Commit() & Cancel() from javascript/jquery?

I am using GWT2.3 celltable How to call GWT'-CellTable-CustomEditTextCells api like Commit() & Cancel() froml using javascript/jquery? Following is cancel() of EdittextCell-GWT Any alternative ...
3
votes
0answers
38 views

How to call onBrowserEvent() of EditTextCell programmatically from javascript?

How to call onBrowserEvent of EditTextCell programmatically from javascript ? I override onBrowserEvent in my customEditTextCell which is called when user click on cell. I also want to call from ...
0
votes
1answer
33 views

Angular Js in Eclipse

I want to use angular.js in my project. I currently use JSF as a framework in my project. I use Eclipse as IDE. While trying to use angular.js in my project, I found an error of ...
1
vote
0answers
32 views

Android custom url scheme opening new browser tab along with native app

We have an app that handles a custom URL scheme in Android device. In case the app is not installed in the device the request from web page should redirect to an information page (having link to the ...
0
votes
1answer
56 views

How to check if a phone is obstructed by something?

Is there an API that would let me know if my phone is behind a wall, or something solid? I am interested to do this in javascript or java for an Android phone. Or, how would one figure out if the ...
0
votes
1answer
37 views

How can I get the type of a variable in RHINO?

I'm translating some code that use SpiderMonkey to RHINO, and it uses the method JSVAL_IS_INT(val) where 'val' is a jsval(SpiderMonkey code), and I tried to use toNumber(val) of RHINO, where 'val' ...
0
votes
2answers
83 views

Is there a language over JavaScript that allows users to write code like Java code? [closed]

If anyone knows if exists any meta-language above Javascript that allows users to write and organize code like if you write code in Java. After code should be simple translate in Javascript.
-5
votes
1answer
61 views

Cant able to login when facebook apk is installed [closed]

I need help of integrating with facebook authentication. Is it possible to login and logout of my application using Facebook authentication when the Facebook apk is not installed? When I installed the ...
-4
votes
1answer
36 views

md5 hashing on java instead of javascript [duplicate]

Possible Duplicate: Generate MD5 hash in Java MD5 hash was generated using javascript function. Requriement is to generate the MD5 hash generation in java. On javaScript side, the password ...
1
vote
1answer
33 views

How to programmatically create new browser sessions in IE every time a user accessed an application URL in new browser window

How to programmatically create new browser sessions in IE every time a user accessed an application URL in new browser window? This is similar to simulating the manual action “File->New Session” menu ...
-2
votes
0answers
27 views

I see march 31,2013 present in one country and not present in another country in a calender [closed]

I see march 31,2013 present in one country and not present in another country in a calender function of an applictaion. Please suggest what could be the issue.
0
votes
0answers
29 views

Getting a Java applet to scale to a big browser

I have been trying to get a Java applet embeded in a .htm file. I want to scale the maximum size for a browser window depend of users current resolutom, especially for chrome and toolbars. The ...

1 2 3 4 5 87
15 30 50 per page