Click here to Skip to main content
15,890,947 members
Home / Discussions / Java
   

Java

 
AnswerRe: System timezone Pin
jschell10-Feb-14 8:18
jschell10-Feb-14 8:18 
GeneralRe: System timezone Pin
Bernhard Hiller10-Feb-14 21:34
Bernhard Hiller10-Feb-14 21:34 
GeneralRe: System timezone Pin
jschell11-Feb-14 11:10
jschell11-Feb-14 11:10 
GeneralRe: System timezone Pin
Bernhard Hiller11-Feb-14 20:14
Bernhard Hiller11-Feb-14 20:14 
GeneralRe: System timezone Pin
Richard MacCutchan11-Feb-14 21:56
mveRichard MacCutchan11-Feb-14 21:56 
GeneralRe: System timezone Pin
jschell12-Feb-14 9:16
jschell12-Feb-14 9:16 
GeneralRe: System timezone Pin
Richard MacCutchan13-Feb-14 2:53
mveRichard MacCutchan13-Feb-14 2:53 
QuestionJava Code for Filling in Random Radio Buttons Pin
Romahn Graham6-Feb-14 4:08
Romahn Graham6-Feb-14 4:08 
Hi, I have a code that just won't work and I can't figure out why.
It's supposed to go to a survey page and fill in radio buttons randomly. For instance a survey with 100 questions, 6 per question. It fills in one question. For some reason my Aunt really needs this? Any thought?

JavaScript
// randomizer
 
function randomFromTo(from, to) {
    return Math.floor(Math.random() * to) + from;
}

function autoFill() {
var radioList = [];

for (var i = 0; i < document.forms.length; i++) {
        for (j = 0; j < document.forms[i].length; j++) {
            if (document.forms[i].elements[j].type == "radio") {
	if(typeof radioList[document.forms[i].elements[j].name.substring(0, 10)] == 'undefined') {
                radioList[document.forms[i].elements[j].name.substring(0, 10)] = [];
        }
	radioList[document.forms[i].elements[j].name.substring(0, 10)].push(document.forms[i].elements[j].id);
        }
    }
}
for (var radio in radioList) {
var rand = randomFromTo(0, radioList[radio].length-1);
document.getElementById(radioList[radio][rand]).checked = true;
}
}
 
window.onload = function(){ 
autoFill();
};

GeneralRe: Java Code for Filling in Random Radio Buttons Pin
Richard MacCutchan6-Feb-14 6:20
mveRichard MacCutchan6-Feb-14 6:20 
Questiondatabase for sudoku game Pin
Member 105666313-Feb-14 20:49
Member 105666313-Feb-14 20:49 
AnswerRe: database for sudoku game Pin
Richard MacCutchan3-Feb-14 21:58
mveRichard MacCutchan3-Feb-14 21:58 
QuestionHow to get Content Pane for a JPanel ? Pin
chdboy3-Feb-14 18:43
chdboy3-Feb-14 18:43 
Questionmultiplatform systems peer to peer LAN Mesengger Pin
Member 105671503-Feb-14 18:17
Member 105671503-Feb-14 18:17 
SuggestionRe: multiplatform systems peer to peer LAN Mesengger Pin
Richard MacCutchan3-Feb-14 21:57
mveRichard MacCutchan3-Feb-14 21:57 
GeneralRe: multiplatform systems peer to peer LAN Mesengger Pin
Member 105671505-Feb-14 17:13
Member 105671505-Feb-14 17:13 
GeneralRe: multiplatform systems peer to peer LAN Mesengger Pin
Richard MacCutchan5-Feb-14 22:25
mveRichard MacCutchan5-Feb-14 22:25 
GeneralRe: multiplatform systems peer to peer LAN Mesengger Pin
Member 105671509-Feb-14 17:09
Member 105671509-Feb-14 17:09 
GeneralRe: multiplatform systems peer to peer LAN Mesengger Pin
Member 1056715010-Feb-14 17:30
Member 1056715010-Feb-14 17:30 
QuestionJava Code for converting RGB image to Ycbcr image Pin
Member 105657221-Feb-14 20:30
Member 105657221-Feb-14 20:30 
SuggestionRe: Java Code for converting RGB image to Ycbcr image Pin
Richard MacCutchan1-Feb-14 21:39
mveRichard MacCutchan1-Feb-14 21:39 
AnswerRe: Java Code for converting RGB image to Ycbcr image Pin
SOHAM_GANDHI3-Feb-14 5:25
SOHAM_GANDHI3-Feb-14 5:25 
QuestionJava Code for Wavelet Transform based algorithm for Image inpainting Pin
Member 105657221-Feb-14 18:59
Member 105657221-Feb-14 18:59 
QuestionImage inpainting Using Wavelet Transform in Java-Project Pin
Member 105657221-Feb-14 18:51
Member 105657221-Feb-14 18:51 
AnswerMessage Closed Pin
1-Feb-14 19:17
professionalPeter Leow1-Feb-14 19:17 
GeneralRe: Image inpainting Using Wavelet Transform in Java-Project Pin
Member 105657221-Feb-14 19:43
Member 105657221-Feb-14 19:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.