Tagged Questions
0
votes
1answer
15 views
Wicket call method after pressing enter
In my Wicket application I would like to call a method by clicking on a button. I googled and found some solutions for wicket forms, but no easy solutions for panels without a form. Is there a easy ...
0
votes
1answer
33 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
2answers
65 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 ...
1
vote
1answer
42 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 ...
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
34 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 ...
6
votes
4answers
3k views
Java to JavaScript using GWT compiler
I have some Java code written that I'd like to convert to JavaScript.
I wonder if it is possible to use the GWT compiler to compile the mentioned Java code into JavaScript code preserving all the ...
2
votes
6answers
66 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"
...
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
22 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();}"
...
1
vote
2answers
2k views
Javascript InfoVis Spacetree Individual Node Styling
I am newbie with javascript coding - can anyone help me with the InfoVis Spacetree? I am trying to set the width and height of a certain level of nodes to be smaller than the rest. It seems like I put ...
0
votes
1answer
194 views
Call external javascript function frm JSP
I'm brand new to the javascript. I'm trying to call a javaScript function from my jsp.Its not working. I was trying to debug it through bugzila. It saying "No Javascript on this page"
<%@ page ...
0
votes
1answer
26 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 :
...
2
votes
4answers
133 views
WARNING: Request method 'GET' not supported
In my Spring Application i'm doing like this..
My Jsp form click hyper link form will be sent..
<form:form action="user" modelAttribute="NAME">
<a href="href_form1" ...