Tagged Questions
0
votes
0answers
4 views
Populating the web form upon filling the primary field
I have a scenario when the user try to fill the primary field in the form which as many fields, based on the primary data field entered i wanted to populate the remaining fields in the form.
I have ...
1
vote
0answers
6 views
CellList keep selected Cells selected?
I use the MGWT CellList which works perfect.
I have the following problem. How can I keep selected cells selected such that the remain selected after the user releases the cell?
Here is my ...
0
votes
1answer
8 views
java script in struts [on hold]
I am trying to use a java variable in jsp with struts. I pass this variable as a parameter to a javascript function. It doesn't work. It tried referring to other sites but it still didnt work. Can ...
0
votes
1answer
9 views
Selenium JavaScript executor returning null when JS works fine on Chrome console
I'm trying to add some text to a text box in an iframe using Selenium + ChromeDriver (Java-driven) and I'm getting the following error in my stack trace:
org.openqa.selenium.WebDriverException: ...
0
votes
0answers
23 views
Writing user input to XML File
I am working on a project in JSP. Right now, my program successfully extracts contents from an XML file and outputs them into a div. I also have some textboxes that read user input. I'm trying to ...
0
votes
1answer
24 views
How to manipulate a Textfield in the Browser using a Java Programm?
Hi my Question is one kind of an automatization problem. I want to access a specific page which consists of two editable textfields and some non important elements, read all the textfields out into a ...
0
votes
2answers
50 views
How to loop through Java List<Object[]> object in JavaScript?
Controller
List<Object[]> permissionList = new ArrayList();
//fill permissionList with list of object ayyays (objetct[0] = permission id, object[1] = permission)
...
0
votes
3answers
31 views
How can you execute struts2 actions that need to be in the main opening JSP
As I am saying, when accessing the website the main (index) page has to load information that comes through actions. I have been doing some research but I do not see really clear how to do it. Can ...
0
votes
1answer
38 views
Trying to call the JavaScript function from Java Source code
I am developing an Android App to read the barcode by using the Zxing Barcode reader Plugin.
In the plugin there is an object named window.plugins.barcodeScanner with which we encode/decode the ...
0
votes
0answers
35 views
UTF-8 encoding in Java giving contrasting result
I have the following encoding in the javascript file:
var words = CryptoJS.enc.Utf8.parse("cy03ISBnqOMGQZoAvpAszw==");
and it gives me out put as - (I have checked it on ...
0
votes
1answer
20 views
How to make vertical menu using jsf?
i m developing a web page, where i want to show vertical menu. when any clicks on menu its content should open on same page inside a box, and on clicking next menu new content should open in same ...
0
votes
0answers
50 views
using javascript method in java
I'm building an android app using phonegap.
I can send a message from my tablet to a Win CE computer using bluetooth and alter a value on the WIN CE pc, after altering I send a message back with the ...
2
votes
1answer
15 views
iMacros Frame Name Trouble Shooting
I am having a issue with my frame names constantly changing I have tried FRAME NAME=* and various other ways. I Think its not working because the webpage is set up as different html tabs.. I am not ...
0
votes
0answers
23 views
Getting return value from setTimeout function call for window.onload
Looked all over stacko for this and haven't found anything that works. I'm a bit of a noob to JS so here goes.
I had found this helpful code snippet to find onload page times for my junit webdriver ...
0
votes
0answers
20 views
Plugin development for Cordova 3.x
I am trying to develop an iBeacon Cordova 3.x plugin for Android, nevertheless, it doesn't work. I keep getting the following error:
Error adding plugin me.habel.plugins.IBeacon.IBeacon
exec() call ...
2
votes
1answer
22 views
How to update a JSP page html element using ceratin Javascript logic?
I have a JSP page called root.jsp, in that i have a footer tag which displaces certain text( that is coming from a properties file from java end). The footer tag itself is displayed using scriplets ...
0
votes
4answers
34 views
How to make simple web dialog for web page
I'm new in the web programing. I'm making a web side and I wan to use lots of web dialogs like the ones in tweeter or fb. They are not pop-up windows and I guess can't be blocked by the browser. I ...
1
vote
1answer
17 views
Imacros Parsing String
I was wondering if someone could show me how to extract part of string from a var in a Imacros java script.
WebPageNumber = "Code: ";
WebPageNumber += "TAB T=1" + NewLine;
WebPageNumber += "FRAME ...
0
votes
0answers
12 views
Trigger TouchMoveEvent in JavaScript or GWT?
I have a ScrollPanel where I want to trigger a TouchMoveEvent manually.
Is this possible?
0
votes
0answers
18 views
Javascript client code giving NS_ERROR_FAILURE
I am trying a thrift client-server hello world call.
The server is written in java and the client is in javascript.
Client.html is as follows:
<html>
<script src="thrift.js" ...
0
votes
1answer
26 views
Disable redirect to java.com on mobile when using deployJava.js
I'm using Java Deployment Script on my web application using this code.
<script src="https://www.java.com/js/deployJava.js"></script>
<script>
var attributes = {
...
-1
votes
0answers
33 views
CryptoJS functions in JAVA [on hold]
I have this .js file which is encrypting passwords. I have to write the same thing in JAVA. Can someone here explains what it is doing and the in-built funtions in JAVA that I can use? And for which ...
0
votes
1answer
35 views
Error Manager: from standard Java to Servlet
I've created my Logger Java class, for a private use webapp, using JSP/servlet.
My logger class write errors on a custom file, but I also need to let them appear as a javascript window allert.
I was ...
1
vote
0answers
15 views
Websocket evnt.data undefined after refresh
I am using websocket for showing real time message updates from the server.
My server code snippet is :
My server keeps sending string to my client till the connection is open.
@OnMessage
public ...
0
votes
0answers
14 views
javax.servlet.jsp.el.ELException: Unable to find a value for “rootGuid” [on hold]
javax.servlet.jsp.el.ELException: Unable to find a value for "rootGuid" in object of class "statefarm.framework.controllerw0089701.exceptions.EAUncheckedException" using operator "."
at ...
0
votes
1answer
29 views
typing on keyboard should effect keyboard on web
I am making typing tutor web app for my college project. I want keyboard to be displayed in website and if i type any letter on keyboard that should highlight the key of web keyboard. So what ...
0
votes
1answer
45 views
Javascript and Java Communication
I am building application using ADF technology with Jdeveloper 11.1.2.3 as IDE. In the application in some jspx page I am having <OBJECT> tag where the user can insert special type of ...
-1
votes
0answers
32 views
How to read/verify the content in the image/graphs using any language [on hold]
I have a requirement to verify the content in the image/graphs using any language Sample Image , I couldn't find any related any info on this, could any one help me on this.
Thanks in Advance
1
vote
1answer
26 views
iMacros for loop POS={{k}} k is not holding integer value/storing issue
I am having a problem making a loop with iMacros that POS= Relies on k incrementing by 19 ever time, & Store that data. I am having a problem with Holding the k Value through the whole execution, ...
1
vote
2answers
50 views
Element cannot locate with the text- selenium webdriver
Currently working on selenium webdriver and the using the language Java.
Log.info("Clicking on To weekrange dropdown");
JavascriptExecutor executor25 = (JavascriptExecutor)driver;
...
1
vote
7answers
92 views
what is meaning of instance in programming?
I don't get it for long. Any alternative word similar to 'instance' that is easier to understand? For non-programmer, how you explain instance? instance is like example in normal peoples' world. I ...
1
vote
1answer
28 views
Drag and Drop Drawing in Web
The problem is to create a dynamic label printing where in I will present to the user the fields that are available (ex. Name, ID No, Address etc) and I will let them draw their own label.
It is ...
0
votes
1answer
35 views
Am I able to run a RESTful Service and angularJS in the same app to avoid CROSS Browser
i've done a simple RESTful service using Resteasy and JAXRS in Java. And then i'm trying to call to the service from the "front-end" by using angularJS $http.get.
By the way, using tomcat 7 to run ...
0
votes
1answer
36 views
Automatic clicking an button in JavaFX Webview
I am working an an JavaFX Webbrowser that can autologin to some sites, i know how to set the data to username and password fields but how to i make it execute the login button click?
This is what i ...
0
votes
1answer
43 views
Ajax post request call doesn't work
I have a problem with the my Ajax call.
Here is my controller:
@RequestMapping(value = { "/sendMsg" }, method = RequestMethod.POST)
public ModelAndView postSendMessage(@ModelAttribute("message") ...
0
votes
3answers
31 views
How to convert JSP request attribute to a string and assign it to an object in JavaScript
I have a Java servlet which sets an attribute on the HttpServletRequest object:
request.setAttribute("SOME_STRING", somestring);
Now, in my page.jsp, I want to set this string to be displayed in an ...
0
votes
1answer
10 views
How to use AudioControl with Phonegap?
I tried looking for a plugin, but couldn't find one, so I tried making my own. I want to turn silent mode on with a JavaScript command, but I get undefined method on getSystemService. I think there ...
2
votes
3answers
49 views
Concrete types and abstract types in Java when compared to other languages
I am preparing for my finals and trying to solve exercise problems on the back of the textbook when i came across this question:
In Java, if the concrete type of p is Foo, p.getClass() and ...
-5
votes
0answers
35 views
Javascript MyClass.class and o.getClass() [on hold]
In Java, if the concrete type of p is Foo, p.getClass() and Foo.class will return the same thing. Why similar equivalence could not be guaranteed to hold in Ruby,Python, or JavaScript.
0
votes
0answers
23 views
Get user selected text and html from editlive for java editor
I am having problems to get the text and the html that the user has selected in an EditLive for java editor, I have tried this http://docs.ephox.com/display/EditLive/getSelectedText+Method
but this ...
0
votes
1answer
38 views
Android - Java - No Activity Found to Handle Intent
I am trying to create an Android / Java plugin for the cross-platform program Phonegap / Cordova 3.2. I am following several tutorials but can't get the simplest plugin to work.
Currently I am ...
0
votes
1answer
20 views
Add Widget to the a Panel at first Position?
If you want to add a Widget to a lets say FlowPanel you have to do the following:
@UiField
FlowPanel panel;
Widget widget; // some widget
panel.add(widget)
This appends the widget to the panel, ...
0
votes
1answer
29 views
Can GWT use Raphael via JSNI?
I need to do some client-side 2D drawing in my GWT app (nothing fancy, just draw a bunch of basic 2D shapes - circles, rectangles, etc.).
I don't believe GWT has a graphics/drawing framework, and so ...
0
votes
0answers
23 views
D3 api not taking the json after a condition is specified
I am using D3 api for developing an application it is taking a json from the database and showing the result upon it but when i am putting a limit upon the condition json is forming but instead ...
0
votes
0answers
22 views
How to manipulate the width of the link in D3 api
I am using an D3 api to show a network analysis to show one number call how many people. I am able to that. here is the code..
<style>
.link {
fill: none;
stroke: #666;
...
0
votes
1answer
37 views
I can't get my servlet to send parameters to my jsp file using ajax and xml
This is my servlet code and there are no errors and it appears to be fine:
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import ...
0
votes
1answer
16 views
Non refreshable Jsp page
I'm working on a header wich has included a JSP page (notification menu). The problem is that I lose my 'notifications' when I refresh any page (the menu is included in the header) or access any other ...
0
votes
1answer
20 views
How to update the browser's cache after adding html to page with Ajax
I am developing a java spring portlet (Liferay) application and have a page where a user can fill in a form. There is a section where they can add images and these get injected into the page by ajax ...
0
votes
1answer
23 views
How to get the same xhr post response data in another html page?
Im doing maven rest web application using dojo and java. im newbie to dojoscript
While im submitting the form using xhrpost im getting the particular response objects from the service method into ...
0
votes
1answer
21 views
How to set property to struts bean using jsp on click event of button
I am newbee to struts and even web application... I want to set the property of struts form bean using jsp on click event of button . But i am not able to do the same ....
The following is the code ...