Tagged Questions
1
vote
1answer
47 views
Making A Javascript Function Available To Java Code
Problem Description
A somewhat contrived example to illustrate my question. Imagine we have some library of javascript functions that is already maintained and updated daily by an army of frontend ...
2
votes
0answers
15 views
How to selected week in calendar in zk
how to selected whole week in calendar on onclick on Calendar component. Just like this image.
0
votes
0answers
31 views
Best pathfinding algorithm for traversing a 2D array (grid) touching some mandatory points (JavaScript/Java/C# )
I have a 2D array which I want to traverse starting form one point and ending to another with the following constraints:
Only moves in horizontal and vertical direction are allowed
The path must ...
0
votes
1answer
21 views
Retrieving data in Java send by JavaScript
I have a problem with getting the Data send by javascript to java via Rest. I send my Data via ajax.
This is my ajax Method:
jQuery.ajax({
type: "POST",
url: base + ...
0
votes
0answers
24 views
How to show error message when internet/server/vpn is not available
I have a code something goes like this;
<a4j:commandLink
actionListener="#{controller.validate}"
onclick="showFadeLoadingImg();"
oncomplete="confirmOperation();}"
...
0
votes
1answer
25 views
How to use s:if to compare the value of s:hidden
I have s: hidden tag like this...
<s:hidden name="hiddenpopup" value="0" id="hiddenpopup"/>
I am setting the value of the hiddenpopup in javascript like this :
...
0
votes
1answer
53 views
how to Add JavaScript in HTML In Java
function linkClick(e) {
alert(e.target.href);
}
function setDefaultLinkHandlers(){
links = document.getElementsByTagName('a');
for (i = 0; i < links.length; i++)
...
0
votes
1answer
15 views
JavaScript to Java Applet using DeployJava.js to run commandline
I am pretty new to Java. I want to create a Java Applet that will allow my JavaScript to pass a commandline to the Java Applet. This will only ever be run on my development machine - no need to remind ...
1
vote
0answers
8 views
Redirect from mobile Tumblr profile in Safari to Tumblr app
Tumblr is awful in the way it directs links. If you click on a profile link it will not open the profile in Tumblr, but use the built in browser to display a mobile version of it. So it doesn't know I ...
0
votes
0answers
27 views
Catching a “canceled” event from the server
I have a pretty dumb page that uses Java as the server. The page currently allows the user to upload an excel file and the server parses through it.
Now the trick is, when there are errors in the ...
0
votes
1answer
30 views
Network Throughput Speed Test [closed]
I'm planning on building a network throughput speed test (speed test) that will eventually be embedded in a website for random people to test their internet connection speed. The test will not only ...
0
votes
1answer
29 views
Java and JavaScript socket communication
I am creating a browser using The Java DJ Project library. I need to create a persistence socket connection from the browser(Client) to a predefined server. I want to put the Server IP address and ...
0
votes
0answers
15 views
Google column chart values blow up when columns are stacked
Using Google Visualization API to make a column chart. The data table for this chart has three values: a date, an attended value, and an unattended value. Ideally I want the attended and unattended ...
0
votes
0answers
42 views
How do I pass the user Input from HTML file to Java servlets?
I have 1 html file called page2.html and I am using twitter bootstrap toolkit. I am working on a project to develop Automated Seating Arrangement for Exams, and I am trying to develop an Interface ...
0
votes
1answer
22 views
Passing array from select list to action class
I have a dynamically created multiple select list which gets populated from another select list.
<select multiple size=6 width=150 style="width:150px" id="ToLB" name="ToLB" >
...
1
vote
1answer
41 views
call java web service from javascript
I would like to call my webservice methods from pure java script code. and that code should work on mozilla browser.
This is my webservice code:
package com.example.core;
import ...
3
votes
2answers
60 views
I need a specific regex pattern for Java and Javascript
I need a regular expression with following conditions:
min 5 characters, no max characters (only letters and numbers)
must contain minimum 4 letters
must contain minimum 1 number
E.g. of correct ...
-4
votes
1answer
54 views
JavaScript to Java Conversion
I have this function in JavaScript:
// this is a unit-cost specialization of dijkstra's algorithm
function floodfill(distmap,idx) {
var q = [idx], q2 = [];
distmap[idx] = 1;
var dist = 1;
...
3
votes
2answers
84 views
switch case in java by strings < 1.7
function checkValue(value) {
if (value === null || value === undefined || value === '') {
return '-';
} else {
switch (value) {
case true:
return 'Yes';
...
0
votes
0answers
38 views
Javascript DropDown from the DB
Please am using this Javascript Script to pull rows from my Exam table. And what is pulled from the Exam table should as well pull the subject table. Below are things I have tried using Javascript and ...
-2
votes
2answers
49 views
Include a jsp inside another when a button is clicked
I have a logout button.Once it is clicked, I want to show a page confirmlogout.jsp and then based on the user's response, the user has to logout or stay there.
My code:
<span ...
0
votes
1answer
33 views
Multipart request via JSON not getting the response?
I am facing the problem in java is that when i make a request through JSON which is multipart that time i am not able to get the response from the server.
here is the reuest block of javascript:
...
-5
votes
0answers
24 views
Dsplaying dialog box containing text box and Action button in java [closed]
I want display dialog box which contains two text boxes and one action button (submit) and when I click on submit button it should call specified function (in java)
0
votes
0answers
49 views
How to include a jsp using javascript [duplicate]
I want to include a jsp in another jsp when I click a button.Could someone help me? Thanks in advance.
My code:
I have logout code button. On clicking it I need to show a confirmation page.
...
2
votes
6answers
64 views
How to include a jsp inside another jsp using javascript
I have a button logout. Once logout is clicked I need to show another page. How can I do this using JavaScript? Can anyone please help me?
My Code:
<s:form name="LogoutAction"
...
1
vote
1answer
16 views
How to set automatic focus to Java applet on js
I made an applet. It's starting when web page is loaded. But applet lost focus, when web page lost focus too and need to click on area of applet and then it gained focus.
I'm tried variants but it's ...
0
votes
5answers
63 views
how to display the names in a jsp page according to name
i have a page editpatient.jsp which includes a page patientlist.jsp. when you run editpatient.jsp then it displays all the records present in the database.I have a dropdown and also a search field to ...
1
vote
0answers
57 views
Phonegap vs native on android performance test
I have a serious issue with my final year project. I was told to develop a mobile app using PhoneGap to support several platforms. Then I was told to compare the performances of PhoneGap vs Native so ...
0
votes
0answers
25 views
Ajax call to Stripes framework in Java results in an empty request body
Environment: Eclipse running Tomcat v7.0, working with the Stripes framework for Java, and submitting to the service via a JQuery ajax call.
The Javascript:
jQuery( function(){
...
2
votes
0answers
24 views
ExtJS Page redirection
This was something which was cracking my head for sometime.
I have a Web Page written in ExtJS+Java EE (Page A). I want to create a
new browser tab on Button click and show page B.
B does some ...