Tagged Questions
-4
votes
0answers
12 views
DropDown Box Selection for Videos [on hold]
Hi I urgently need assistance for a open source project. Just script that plays a video by default e.g. english intro video. Then user can select different languages that plays the same video in ...
0
votes
0answers
6 views
JPlayer setmedia time not working in mobile
I tried to make the player to start playing at 10second, its working correctly in my desktop but not in mobile.
In mobile, it still play from the beginning.
The player is at ...
0
votes
0answers
15 views
Convert base64 encode jpeg image to base64 encoded jpg/png/gif/tiff image?
I am using this phonegap plugin called Screenshot and I am willing to upload the base64 encoded image to facebook. Unfortunately, I get an error from facebook saying that the available formats are ...
-6
votes
0answers
42 views
Do JavaScript and java have same origin? [on hold]
Are JavaScript and java two different languages?
Do they have a common origin?
Are related in some way with each other?
1
vote
1answer
14 views
Selenium “return” javascript value not printing
I'm using Selenium with Java for some tests.
The code I have to print the pages html from javascript works great as an alert:
js.executeScript("alert($('html').html());");
However when I use ...
0
votes
0answers
35 views
Getting JavaScript Error: “e is null” when using assert to verify javascript alert text
In my program, I get the following javascript alert
I am able to switch to this alert. I am able to get the text and click the OK and Cancel buttons. The issue I am having is when using assertequals ...
0
votes
0answers
10 views
RSA encryption issues with Java and decrypting in PHP
I have a project where we are encrypting some text using a public key, in the browser. I am using jsencrypt to get the encrypted string.
However, now I have to do the same on Android, but I can't ...
-1
votes
1answer
11 views
Access to files in Sharepoint 2007 using javascript from external site
I want to get access to download files from SharePoint 2007 (different Libraries) using javascript or java. So i want to code application which will allow to download files from SharePoint 2007. I ...
1
vote
0answers
4 views
JavascriptExecutor in Squash TM with Selenium WebDriver won't work
For testing purposes, I have to execute simple JavaScript queries using the Selenium's WebDriver on a Squash TM server.
This is how my Java code looks like :
JavascriptExecutor js = ...
1
vote
1answer
12 views
How do I ignore files/folders in SonarQube 4.4's Technical Debt calulation?
I have a project that I am using SonarQube 4.4 to track code quality on. The Technical Debt section (no longer a plug-in as they have merged it into the main project I believe) picks up several open ...
0
votes
0answers
38 views
Unable to find logic of checkbox search?
This is my HTML:
<div class="float_left dshadow" style="border:1px solid gray;width:300px;height:900px;margin:40px 0 0 70px;">
<div ...
0
votes
0answers
11 views
Sent cross domain response about logout
My problem is, user has open the window on first tab and open another page from this website (but subdomain), where is loged in too (like on the first one), but he can logout from that first one. My ...
0
votes
1answer
33 views
JavaScript output to a String
Is it possible to fetch javascript output to a string in java. I am working with Selenium WebDriver and I expect all child nodes to be listed for which I want to make use of javascript. I am making ...
-4
votes
1answer
35 views
How to convert Java source code into JavaScript code [on hold]
I have developed Java source code. Now I need to convert my Java source code into JavaScript code for some phonegap application purpose. How can I do it? Please give me any suggestions about it and ...
-3
votes
0answers
18 views
Click on Allow security popup using selenium webdriver [on hold]
Need to handle the below security alert. suggest me how to hadle this with selenium webdriver
allow or block
Thanks InAdvance,
0
votes
2answers
27 views
Java to trigger webpages GET value [on hold]
EDIT:
It was just to read with a buffered reader from URL with java, got it working.
I'm making a webpage that can get commands from $_GET vars, (yes it sounds stupid). Is there a way I can open the ...
0
votes
1answer
32 views
How do I access files in /WEB-INF using HTML in a Tomcat server?
Currently I have a website running which allows the user to enter a password into a . The form calls a doPost() to a Java HttpServlet file, which then checks if the field entered was correct or not.
...
-10
votes
0answers
36 views
GMail upload file with JS [on hold]
I am wondering how does gmail upload files to email and when I download it in another computer the attributes like created date, modification date, owner... are all available. Every metadata is ...
-4
votes
1answer
16 views
ArrayIndexOutOfBoundsException: 4 Bukkit Plugin [on hold]
I am trying to develop a bukkit plugin, but I am getting the following error: http://pastebin.com/5vahWJ2i on the following code: http://pastebin.com/EH5DraYE I think it is because a string cannot be ...
0
votes
1answer
23 views
Can I capture an event when a Java applet fails to load?
I know that it is possible to register for error events after an applet has loaded. (e.g. document.getElementById('suchAndSuch').onError(function () { ... });) I'd like to know if it is possible to ...
2
votes
1answer
27 views
How do I destroy a Java ScriptEngine Instance?
I'm using Java 8. I'm not a java expert (haven't looked at java since college 10 years ago)
I create an instance of a ScriptEngine (Nashorn if it matters).
I use it to eval several javascript ...
0
votes
2answers
37 views
Get javascript data to the gwt side
I am using javascript variable which has json data like:
<script>var info = '${partyList}'</script>
I got the above string in my html like below:
var info = ...
0
votes
2answers
20 views
error loading images and JS files in a web app
After creating some sub folders under WEB-INF like js or images,i found problems loading their files i can not obtain any js or image files...what it could be the problem?.
I got this error on the ...
0
votes
1answer
29 views
Javascript not calling servlet
I am passing a URL from my javascript to call a particular servlet. The configuration is done in web.xml.
Here is my JS call:
function ModelForYear()
{ var url = "modelforyear.html";
var e = ...
0
votes
1answer
21 views
Struts Action property can't be accessed from external javaScript
I am working on a project using struts2. In my Action class I have a String testString with setter/getter and I can access it
from my jsp file using ${testString}. Works fine.
Now I need to access ...
-1
votes
0answers
23 views
How to prevent XSS (cross site scripting) in JSP pages?
I am working on a java web application using struts framework.
I need to prevent javascript execution when appended to the url.
Example : https://XXXXXXXXX.com/my_account/login?">alert(1347)
on ...
0
votes
1answer
26 views
form validation with ajax and jsp doesn't work
i am trying to develop a username validation with jsp and ajax but an error apperar like this
POST ://localhost:8080/web_application/deneme.jsp
Show error : 405 (Method Not Allowed)
this is my ...
0
votes
1answer
36 views
Call to window.close closes the session?
I am having an Spring MVC web application. In application I am opening an new window using window.open on user click on button (<a>). When window get opened I am able to access session that is ...
1
vote
0answers
15 views
How to integrate facebook login with Struts2?
I know there are two methods to integrate facebook login with a Java application:
1) Using Facebook code (JavaScript)
I could use the Facebook provided code blew to allow users to login but the ...
0
votes
1answer
19 views
For a drawable UI for java desktop app, which are stable and widely used platforms? [on hold]
I want to start developing an extension for a desktop application based on the eclipse framework. I need to achieve the following UI functionality
Ability to programmatically draw drag-able ...
-8
votes
0answers
37 views
Bitcoin roulette [on hold]
I want to make a roulette game that you can play in the browser, that people can play with bitcoins. My question is the best programing language for that. What do most online casison use? I know Java, ...
0
votes
0answers
7 views
After 6 Serversocket event connection with same application futher ajax request is not getting sumitted
I am facing very strange problem when i am creating server socket event connection with java application deployed on tomcat .After making 6 server socket connection .it is not able to make new ...
0
votes
0answers
9 views
Difference in java websocket approaches from netbeans example
I am working through some websocket tutorials using java and netbeans. I am trying to understand two different approaches to implemetning the java websocket server endpoint. In the tutorial Java EE ...
1
vote
1answer
19 views
EXT JS 5 : How to represent a java form to an ext js model?
I'm begginner in Ext JS and i want to send my Java Form to an ext js store who has a defined model :
This is my Java Form :
public class Form {
private member1;
private member2;
private ...
0
votes
1answer
26 views
Parse a website with jSoup
I am trying to parse a website, specifically this one It does not provide a api for that, like it does for bf4 or other titles, but the owner said that I should just parse the data.
The problem I ...
0
votes
0answers
6 views
How to genrate CroneExpression based on user's values
How to genrate Cron Expression in using java method or is there any javaScript which can create CronExpression based on user selection
-7
votes
3answers
68 views
java code inside javascript doesn't work
I am trying to write some code like below but it doesn't work
<html>
<script type="text/javascript">
function myfunction{
<%System.out.println("fgfffffffffffffff");%>
}
...
3
votes
0answers
56 views
Manipulate Javascript objects from java
I have completed a program to manipulate JavaScript objects from Java
String buildInfoJS = "var build_info = new Object;build_info.BUILD_DISPLAY_VERSION = 'Build 201302232300'";
...
0
votes
3answers
59 views
ADF Web Application: how to add and modify UI components on page loading (before it's displayed)?
I would like to know which are the different available approaches to add, modify and delete UI components before a page loaded.
A practical example that I should handle is the following:
In my ADF ...
0
votes
1answer
20 views
Url max length when using rest (jersey)
if I ask a (rest) service to give me data with an url like this
http://example.com/?userid=1,2,3,4(...)
there's a url size limit, meaning I am limited in how many userids I can send over to the ...
1
vote
0answers
31 views
Interaction between Java and JavaScript?
I now work with Google Map (which now I got it in .html file with JavaScript inside)
and now I've achieved many task I want in Java. Here is the problem.
Since my Google Map will have pin marker on ...
-2
votes
1answer
44 views
document.write won't write strings from a JavaScript File
I have been working with some code that i inherited at work and added some new things to it, but now, the data won't print.
The code uses document.write and uses a .js file to help and store strings ...
0
votes
1answer
49 views
Replace equal with semicolon in Java Script Object
I am sending the Map<String,String> object from servlet to jsp whose key is attribute name and value jsonvalue. My Requirement is to collect the value of key in variable that is root here. But ...
0
votes
0answers
28 views
sending information from java backend to javascript frontend
I have a Java backing bean which has a variable that contains some information (say, a users id). On the client side, I have some Javascript code which needs that information (user id number). What is ...
1
vote
1answer
21 views
Is it a good practice to use JSTL inside a script (javascript) tag?
I'm developing a web app using JSTL and Javascript in Eclipse Juno. I've been reading questions like How to set the JSTL variable value in javascript? and my code works good even if I have error in ...
0
votes
0answers
17 views
Ajax Call to a Action Class; Output in a new Tab; Firefox Blocks Popup
Our Struts Web application has a few Ajax calls (it uses jQuery's Ajax tools).
The requirement, on a high level:
1) An Ajax call must go to a Struts action class;
2) The response comes back to our ...
0
votes
0answers
23 views
How to get email address configured in e-mail client on clients computer through spring web application [on hold]
I have web Application developed using Spring(Java) which is running on companies intranet.Now i want to detect email address configured in mail client(Outlook,Thunderbird, etc) on user's computer.So ...
0
votes
0answers
7 views
Displaying realtime URL for track in JPlayer (Javascript)
I wish to display a live link (for my visitor to copy) under the player that will display the
a) direct link to that specific file/track , and
b) the current timecode
e.g
If the visitor is ...
0
votes
0answers
22 views
window.find() does not recognize all the occurrences
I am developing a java application with an embedded browser using SWT.I want to add search function. So i am using the javascript function window.find() within the SWT function ...
0
votes
0answers
8 views
GWT-Openlaryers /js/gwt-openlayers/util.js miss file when download from maven repository
When i import this library with maven in pom.xml:
<dependency>
<groupId>org.gwtopenmaps.openlayers</groupId>
...