Tagged Questions
-1
votes
2answers
35 views
Json to Html (No third party libraries)
I'm beginner with JSON and I'm very confused with this.
I have to convert any valid JSON string into valid HTML string to be able to visualize JSON on the web.
jsonToHtml(“[{‘x’: 1, ‘b’: 2}, {‘x’: ...
-3
votes
1answer
27 views
How can I auto import html from web site? [on hold]
I would like to know how can I automatically pull html from web site and put it into eclipse or visual studio. I would like my program to pull it from internet on every five minutes or so. Also can my ...
-2
votes
0answers
5 views
Maps api add custom places and create route
I want to do the following:
Take a map (preferrably google map)
Add custom locations to it
Mark in the map colored routes with marker (like place A to place B blue line with text Bus 12, then place B ...
-1
votes
1answer
21 views
How to get value of a hashmap passed from jsp to jquery or javascript code [duplicate]
I want to pass a Servlet-generated Hashmap to a JSP generated page. On this page, the user selects a particular value of the first dropdown, which populates the contents of second dropdown. The keys ...
0
votes
0answers
14 views
Finding Location of a Device with GPS feature
Is it possible to find the location of a device without using internet if a button is clicked on the website which uses Geo Location API? Is it possible to get the location if the device has GPS but ...
0
votes
0answers
40 views
How to pass two strings to javascript with loadURL
I am trying to call a javascript function from my webview while giving it two strings.
But one of the strings is always null. In my java code it isnt.
...
0
votes
0answers
17 views
How to wait till SWT browser finishes loading?
I am using a SWT browser in my application.I need to run a script on HTML page in the browser.But the script is being run before the page is completely loaded.So how do i make the app wait till the ...
0
votes
1answer
17 views
Android Webview LoadURL calling javascript with two Strings
I am trying to call a javascript function from my webview while giving it two strings.
But one of the strings is always null. In my java code it isnt.
...
0
votes
1answer
26 views
Strust2 type conversion from string to byte array?
I am getting some input from the user on client side with no limit on characters. So I am storing input as a BLOB data type.
I am directly getting my entity filled using getters and setters.
Action ...
-5
votes
0answers
34 views
How to do dropdown menu in webdevelopment using springs [on hold]
Actually I want to get list of dropdown values from database. I am using spring framework with jdbc template. I can able to populate list. Based on populated list I have to show one more drop down to ...
0
votes
0answers
7 views
debugging the javascript,xml,xslt and java together with eclipse Indigo SP1 IDE. Thanks
I want to know is there any way to debugging the java script, xml, xslt and java together with eclipse Indigo SP1 IDE. I just want to debug the entire application flow.
Thanks,
Kondal
0
votes
0answers
28 views
JavaFX AceEditor
i have a problem with initializing the Ace editor inside WebView. The content of the HTML is shown (Sample Text), but if i'm trying to call a javascript function inside the HTML nothing happens. The ...
2
votes
1answer
57 views
Issue with conversion of Map inside a Map into JSON in Java
I have a treemap in Java which has structure like this below:
public static Map<String, Map<String, Integer>> testMap = new TreeMap<String, Map<String, Integer>>();
public ...
0
votes
1answer
45 views
Guessing a Random number with opportunities
So i have to make a program kind of game, is a guessing number game so I had made all the program but i want to tell to the user that you only he have 5 opportunities to guess the number, if the user ...
-2
votes
0answers
22 views
displaying different menu according to specific user on same page [on hold]
i am beginner in java and i am making an application in which i want to display menu for 3 different types of users. like when we login i want to check which type of user is this and which menu to ...
0
votes
1answer
22 views
How to prevent GWT from obfuscating code/Where to find the GWT Complier
I am currently working to find a bug in my code, and upon inspecting element on my browser (FF and GC), I found that the java source code is obfuscated by GWT in order to increase parse speed. From ...
-2
votes
1answer
39 views
How to run executable files from browsers? [on hold]
I would like to find a method that works on both Mozilla and Chrome. I need to run executable files. I completely understand why it is disabled and what a great security breach it would be. However I ...
0
votes
0answers
24 views
Cordova Android plugin: how to pass JSON result from background service back to app? [on hold]
I created the Cordova plugin for Android (Cordova v 3.5) with receiver, which capture some data.
I would like pass these data back to the Cordova application to processing.
How can I easily pass ...
0
votes
1answer
34 views
Javascript being ignored in my jsp file implemented in spring mvc
I'm having a login page in a jsp file, which also utilizes jstl, and a simple javascript validation to check whether its fields are empty or not.
On clicking the 'Login' button, its supposed to be ...
1
vote
2answers
31 views
ArrayList.ensureCapacity equivalent in Javascript
Is there an equivalent method in Javascript arrays or ArrayList to Java's ensureCapacity? I am translating a certain Java code containing this method to Javascript, and couldn't find any equivalent to ...
0
votes
1answer
11 views
Nashorn profiler output format
Nashorn java script engine has built-in profiler which can be invoked like this: "jjs -pcs profiled_script.js". This profiler produces file NashornProfile.txt, here is example line from this file: "0 ...
0
votes
1answer
36 views
Performance impact on loading interrelated dropdowns with max of arounf 30,000 records
Here is the scenario:
I have 4 drop downs in a JSP page in my Spring MVC application.
The dropdowns (Countries, States, divisions and villages) are related to each other as on selection of a ...
0
votes
0answers
37 views
Error while reading JavaScript file in using java
I wanted to access JavaScript functions in my simple java class so that i can access those functions from my class itself, I have below code,
public class Script {
public static void main(String[] ...
0
votes
2answers
23 views
how to define that a point in out of a zone in google map
I want to write a class that defines a geographical point is in a zone or out of it;
I save the point in sequence that they connected to each other when create zone ;
no how can i determine that a ...
0
votes
0answers
19 views
how to interrupt uploading file using selenium webdriver
When i upload a file using sendkeys(),the pop up get displayed with the progress bar..and on the pop up there is a close button which cancles the file being uploaded..
I am trying to close the button ...
0
votes
0answers
5 views
Visual Studio 2013 Enterprise: Oracle Java SDK A more recent version of this software is required
Opening a sample Javascript project created by Microsoft, I get the error message:
"Oracle Java SDK A more recent version of this software is required"
I click on requirements link, then I accept ...
-1
votes
0answers
24 views
empty JSP page is landing
Empty JSP is landing. My code in first.jsp is
Webcam.snap( function(data_uri) {
dat=data_uri; //.replace("data:image/jpeg;base64,","");
document.location.href = ...
0
votes
0answers
19 views
Decoding a JSON Web Token from Java to Javascript
I'm using the JWT to encode a Json into a encoded version using the java-jwt and I'd like to know how can I decode it in my Javascript ( front end ) side.
I know that isn't the best solution possible ...
0
votes
0answers
17 views
Unable To Connect To Web Socket After Page Refresh in Firefox
In Firefox First Time I am able to Connect To Web Socket, After Page Refresh Its Keep Throwing Errors Added Below Firebug Console. With other browsers(verified in Chrome and IE) i haven't find this ...
0
votes
2answers
19 views
unable save image in jsp
I'm unable to save a Data URI in JSP. I am trying like this, is there any mistake in the following code?
<%@ page import="java.awt.image.*,java.io.*,javax.imageio.*,sun.misc.*" %>
function ...
0
votes
0answers
29 views
Html form is not re-submitting after submitting to window
I have an HTML form in a page.
When I submit the form an external application should be opened in new window.
From that application it should pass the form data in post request.
Here's my HTML:
...
0
votes
0answers
19 views
Websocket Java sending data to client more than 65536 bytes, size exceeds in browser
//op - OutPutStream
byte[] textBytes = strText.getBytes("UTF-8");
op.write(0x81);
if(textBytes.length < 127)
{
op.write(textBytes.length);
}
else
...
0
votes
0answers
10 views
Java to Js calls. Is there a time limit after which netscape.javascript.JSException would be raised?
I am receiving the following exception when calling a JavaScript method from a Java applet using JSObject call mechanism.
netscape.javascript.JSException: Unspecified error invoking method or ...
0
votes
2answers
23 views
How to extend Java class in Nashhorn JavaScript and add class member variables
I try to create an instance of a class that extends a Java class, and in that instance add some class member variables. Here's my attempt:
var ui = Java.extend(javax.swing.JPanel, {
cb : new ...
0
votes
1answer
22 views
KnockoutJS read viewmodel from local file?
I'm writing a client-server framework in Java, and I want the server to display some metrics on a HTML page.
To do this, I would love to be able to use KnockoutJS (very little experience) so that the ...
0
votes
3answers
51 views
Is there a way to get Browser Generated HTML and CSS
I am really eager to know , is there any API or way to achieve this.I want to get Source code generated by the Browser.
In below code initial CSS Class of colorElement is redFontClass but onload ...
1
vote
2answers
34 views
How to get Unicode response to JSP in Spring MVC using JavaScript
I want to send a Unicode to JSP page using javascript. I went throug the internet but still could not find an answer. It always shows me something like '???? ????'. Can anybody tell me the answer ...
0
votes
1answer
24 views
How to use NanoHTTPD to show log file
I have written a java desktop application that accepts http requests using embedded NanoHTTPD web server https://github.com/NanoHttpd/nanohttpd, after receiving http request my desktop application ...
0
votes
1answer
28 views
Getting cookies from different domains of same company's sites
I have two websites,for example, one is www.example.com and second is m.example.com. When I redirect from m.example.com to www.example.com, I do not get my session. Is there any possible way to get ...
1
vote
1answer
14 views
SetTimeout Not Working In Ember Controller?
setTimeout(function(){
Ember.$("#right-bar").addClass("col-lg-12");
Ember.$("#right-bar").removeClass("col-lg-2");
this.set('isExpanded',true);}, 250);
//this.set('isExpanded',true);
Greetings! I'm ...
-1
votes
1answer
32 views
Problems styling my pictures using JavaScript and CSS
I'm trying to build a portfolio slideshow and I'm taking it one step at a time and I'm trying to make sure I have it styled so it fits inside my divider and will stay inside that divider regardless of ...
1
vote
0answers
6 views
Firefox Websocket connection not closing after the tab or browser is closed
I've tested the connection in google chrome browser, its connecting and disconnecting ok, but why firefox is not closing the connection after it is closed?
I've tried to add this part of code:
...
0
votes
2answers
28 views
How to pass parameters from servlet to JavaScript
I am working on a board game with dynamic board size of 5x5,...,8x8
This should be a game that runs on a web.
I am working with NetBeans and tomcat as the server for testing.
I have the ...
0
votes
0answers
20 views
WebSocket connection could not be established
I have WebSocket Server Endpoint within the Java Resources/src folder in my Dynamic Web Project. The Java class is annotated with:
@ServerEndpoint("/SignalingServerEndpoint")
I have a JavaScript ...
-1
votes
0answers
11 views
two submit diferent in jsp page with JQuery
i need send information, the page JSP with 2 submit and Jquery, but the first submit it's ok, but the second submit not, de code is:
$("#formIngresar2").submit(function(event) {
alert("Envio form ...
0
votes
1answer
29 views
form auto submits multiple times
I need to send a few hidden variable to the struts controller on auto submit of the form. I am sending the variables just fine but since I have the form submit in the document on ready function. The ...
0
votes
1answer
18 views
Differences in Processing when using java, javascript, and running embedded using processing.js
I wrote some code to create a dynamic paintbrush, that changes colour, in Processing environment. The same code produces very different results when running in Java, Javascript and embedded ...
0
votes
1answer
20 views
AngularJS DELETE request to my REST webservice is in plain text?
So I am trying to wire up an AngularJS front-end to a Java Spring back-end using a REST service.
My DELETE requests keep getting the following error (notice the speaker?id=) - Why is it generating ...
0
votes
0answers
24 views
FishBone Diagram Using Jquery
Can anyone help me to create a fishbone diagram using Jquery.
I tried to create one using the http://bl.ocks.org/bollwyvl/9239214#d3.fishbone.js
Its works perfectly in Google Chrome, If you run the ...
0
votes
1answer
33 views
GWT infinite scroll with discarding start-of-list results
Looking for a GWT DataGrid component which implements infinite scroll, BUT also makes sure to discard the results no longer visible on the screen : such as the previously loaded results that are not ...