0
votes
0answers
19 views

Passing parameters from Javascript to Android (Java)

So I'm trying to send an email through the Android's email client. However, when I attempt to send the E-mail to the client, it says the email is null. I find that strange since I'm passing the ...
1
vote
2answers
42 views

insert non-overlapping range in 2 column table

I have a database table with 2 columns. +-------+-------+ |min |max | +-------+-------+ |0 |99,999 | +-------+-------+ |100000 |499999 | +-------+-------+ |1000000|9999999| ...
-1
votes
1answer
26 views

How to properly type javascript codes in NetBeans 7.4?

I am using netbeans 7.4 which supports HTML & PHP only. I have a javascript tutorial and I need to practice those codes in an IDE. (I am absolutely new to javascript). I created a new project ...
0
votes
0answers
10 views

sencha cmd overview - problems with generated code

At work we've recently taken over a project written in a different company. Its in java and javascript with frameworks galore and one of them is sencha. We're having trouble getting the app to build ...
3
votes
4answers
40 views

Add onclick function in pie chart

I need to add a graph in my project and I tried one free graph (link is given below) I need to add an onclick handler to that pie chart. I think need to add the onclick function inside ...
0
votes
2answers
65 views

how to check null value in html textbox?

I have a JSP page where i am fetching value from html textbox. I want to insert that value into MySQL database. I want if textbox in empty,null,zero and undefined then insert 0 in database otherwise ...
0
votes
1answer
18 views

How to reduce the margin size for piechart in achartengine?

I am using a-chartengine for drawing pie chart. I am not able reduce the size of the pie chart margins. I want to reduce the margin layout which is default,But the size of pie chart should not get ...
0
votes
1answer
27 views

SuggestBox with KeyUp Handler-Arrow keys not working

I have a SuggestBox with KeyUpHandler attached to it to call the service to fetch suggestions. Now, the problem is, when I type the text and suggestions are displayed, if I press down arrow key, the ...
0
votes
0answers
16 views

Summing the individual elements of a column in a dojo grid

Got a jsp going with a dojogrid displaying, where a couple of the columns in the grid hold money values. I'm hoping to display the total sum of those money values under the aforementioned grid. Can I ...
0
votes
1answer
22 views

jsf. How to post backbean object from jsf form to javascript

I am using Primefaces/JSF in combination with pure javascript tools in order to implement an image viewer & annotator. Image viewer is built upon the OpenLayers framework. When the user annotates ...
2
votes
2answers
22 views

How to use action return value in javascript(oncomplete)?

I have a commandButton and I want to call a javascript function when it is completed. the problem is I have to use the return of the action method in the oncomplete function. I assumed that I can use ...
0
votes
1answer
36 views

passing the value of an array to a method in javascript

I have to create an HTML table in which I will have images to display. further I want to pass this path to the next servlet page. for this I have created a separate method in javascript. Now the ...
0
votes
0answers
21 views

Find same DOM-element with JSoup and JS?

Is there some unique, inherent attribute of a DOM element that makes it possible to select the same element with both JSoup and Javascript? I currently both render a page with webEngine and extract ...
1
vote
1answer
34 views

action is not fire for second time in struts 2

when I submit the button first time , it will hit the action(its work fine). but when I submit the button for second time it will not hit the action and display long stack race error message. here ...
0
votes
1answer
13 views

How to use CoffeScript as DSL in a Java project?

We use JavaScript a kind of DSL in our project and running it using Java Scripting API. CoffeScript looks much better that JS so we want to it. T Since there is no implementation of CoffeScript for ...
0
votes
1answer
28 views

JsArray not able to return length after receiving data from html5 storage

i have to save JavaScript-Arrays which contains JavaScriptObjects into html5 storage. The number of these JavaScriptObjects diversify in the arrays. When iam reading out the saved JavaScripts-array ...
1
vote
1answer
26 views

Traverse elements collectively in javascript?

I have 7 text-fields in my JSP. In my javascript quite often I need to collectively fill these textfields, empty, validate, etc. So presently in my JS I keep their id's as parameter_1, parameter_2, ...
0
votes
2answers
17 views

How to convert encoded image into .PNG? [duplicate]

How to convert base64-encoded image into .PNG (using Java or JavaScript)? ...
0
votes
1answer
25 views

Using a timer for tracking user action in a Spring web application

I am developing a management application in Spring Hibernate wherein I need to implement a timer system. USE CASE User clicks on an activity or an event on the UI(jsp). The timer starts, it ...
0
votes
1answer
23 views

Hot to catch a websocket-close event when client changes IP address or disconnects?

I'm developing an application using web-sockets. The server side is written in Java and uses Netty as application framework, while the client is written in javascript/jquery. I'd like to catch any ...
-2
votes
1answer
42 views

The difference of Regex between js and java

I have the following Regex to test for mobile numbers: /^1[0-9]{10}|[0-9]{8}$/. If I have the String "123456789", I test it in Java, and result is false; but in JavaScript, the result is true. Can ...
-2
votes
0answers
7 views

Titanium studio eventlistner [on hold]

I have already created the button for option like "Apply with facebook". now How i can create a link(not button) saying "I do not have Facebook and want to fill out the application manually "For ...
1
vote
1answer
17 views

Using Meta Tags for different Pages in GWT?

I want to use tags in GWT. I know I could do this in the static index.html file, but I want to add different meta tags on different pages in GWT. How can I add meta tag to GWT?
0
votes
0answers
45 views

Use arraylist info in javascript

I have a web service client which returns an object arraylist and two other values, this is the class that the web-service returns: public class RespuestaObtenerLimites { private int cdgError; ...
-2
votes
1answer
22 views

Menu component in JSP

I look for what components is presented on the picture, I exactly mean about menu, how to make the manu in JSP page ? It can be done with CSS, JS or what ?
0
votes
2answers
41 views

Redirecting html page

Here is my problem : I have to perform post from java code to some page , get the data and parse it. The problem is that only my country ip can post to this page. Requests from another ip's are ...
5
votes
3answers
617 views

LiveConnect calls are blocked on 7u45 since Java 7u51 became available

I have a page with a Java applet that has the following JavaScript code which makes a LiveConnect call when the window is closing to perform some clean up tasks: window.onbeforeunload = function(e) { ...
1
vote
0answers
27 views

Confused With Websocket Connections

Here is what the request looks like in the browser: { "method": "joinChannel", "params": { "channel": "brobq", "name": "GrillBot", "token": "xxx", "isAdmin": ...
0
votes
0answers
13 views

Open Source Online Mind Mapping Tools written in JavaScript or GWT?

I have an open source software written in GWT framework. And now I hope to integrate a mind mapping tool into it. I assume a mind mapping tool written in JavaScript or GWT framework would best fit my ...
0
votes
1answer
19 views

nodejs child_process exec 'java -version'

hey i'm running the following code in nodejs shell exec = require('child_process').exec now i have exec var as function. then i run exec('java',function (error, stdout, stderr) ...
0
votes
0answers
7 views

WebSocketClient implementation on jetty9

According to org.eclipse.jetty.websocket Class WebSocketClient http://archive.eclipse.org/jetty/8.0.0.v20110901/apidocs/org/eclipse/jetty/websocket/WebSocketClient.html to create a new instance of ...
-1
votes
2answers
40 views

How to build a form or view page dynamically through XML or with any other technique?

How to build a view page (JSP or any other) dynamically, dynamically in the sense the text fields or radio buttons etc has to build dynamically as per our requirement. Is it possible to build a form ...
-1
votes
0answers
15 views

How to check file size before upload in IE without using ActiveXObject [duplicate]

I want to check file size before upload in IE without using ActiveXObject. How can I do this. please help.
1
vote
1answer
55 views

Need to access Java class variable from javascript

I have a server-side java application utilizing struts/jsp. For simplicity I won't go into the details of it, and because I'm only concerned about the value of a particular class variable after my ...
0
votes
1answer
19 views

Element after jquery.show and WebDriverException: unknown error: cannot focus element

My javascript line: $('#name').show(); My webdriver code line: wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("name"))).sendKeys("Some Name"); When i run the test it throws the ...
1
vote
1answer
62 views

How to access the array variables stored in session from within the javascript?

I'm having a servlet in which I have stored an array within the session scope as follows, session.setAttribute("pageNames",pageNames); Now this servlet transfers the controll to an JSP page which ...
0
votes
1answer
19 views

Selenium 2 : finding web element locators programatically

I am tired of manually finding locators (id,xpath,css,linkText etc..) for web elements from my web page source. It also consumes more efforts. So, to avoid that I want to write a code that interacts ...
0
votes
1answer
46 views

Android - phonegap error: Error parsing XML: unbound prefix

I restarted eclipse and the error changed to "error: Error parsing XML: unbound prefix" on the same line I am trying to use this plugin in my androed phonegap application. It is a local notification ...
0
votes
0answers
11 views

autocompletion netbeans javascript gmaps / here

I use netbeans to develop a software in java. To use different types of maps (here maps, gmaps ...) we have to work with their javascript API. In order to load this API, I use this code in HTML : ...
0
votes
2answers
49 views

Html redirection

I need to redirect one html (A) to another (B). I wrote function f in javascript that posts to (B) and put it in (A). I am calling this function in body's "onLoad". Now, I am accessing (A) page ...
0
votes
1answer
22 views

Browser close event by Process

I am using a Process to open Internet Explorer or any other browser and then I want to go into an infinite loop until the browser is closed such that: Process p = Runtime.getRuntime().exec( ...
0
votes
1answer
15 views

setting Access-Control-Allow-Origin in nanohttpd

I have a cordova application that uses nanoHttpd to serve files. How do i set Access-Control-Allow_origin for the files served by nanoHttpd. I went through source code of the server, but I was not ...
-1
votes
2answers
56 views

java or javascript help please [on hold]

I will make this quick. I want to learn how to write code in java.But i also want to learn how to write in javascript. My question is witch would be better to learn first to make it easier for me to ...
0
votes
1answer
79 views

How to programmatically log into a website?

I have looked at multiple examples on stackoverflow and cannot get it to work. This is the url I need to log into programmtically:http://powerschool.fortschools.org/public/ I have tried many ...
0
votes
1answer
21 views

In Tiles 2, is there a way to reference another definition or attribute without directly inheriting?

When defining a tiles definition or attribute, can you reference another definition or attribute without inheriting? I have all sorts of JSP fragments, CSS, and JavaScript that would be considered ...
0
votes
1answer
27 views

Send a stream of integers from Android app and receive it on Node.js express server

I'm going to try to make a simple hack that sends continually streaming integers from an Android App to a Node.js server. I want to know how to create such a stream in Android and how to receive it ...
0
votes
1answer
40 views

Adding Script using extendedrenderkitservice

I am facing a problem in adding script. Please find my code as below FacesContext facesContext = FacesContext.getCurrentInstance(); ExtendedRenderKitService extendRenderKitService = Service. ...
-1
votes
1answer
23 views

Struts 2 <s:doubleselect> Tag Uncaught TypeError: Cannot read property 'applicant_jobTitle' of undefined [on hold]

I have a dynamically populated list for both drop-downs. The first dropdown let's you select job area lists while the second dropdown will dynamically populate acccordingly to the selected option of ...
-4
votes
1answer
58 views

Java Beginner Salary calculator [on hold]

Guys I'm really having a tough time doing this Homework. I don't really know how to start. It would be much appreciated if someone can guide/help. Here's the link. http://i.imgur.com/lJlB8Bm.jpg. ...
0
votes
0answers
20 views

Extract DOM-element offset using webEngine.executeScript on headless server

I want to extract the coordinates of specific DOM-elements. Thanks to @andrey I have the following code up and running. Now I would like to run this on a headless server. Is there some way to ...

15 30 50 per page