Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter ben_aaron

    (@ben_aaron)

    Yes. Are there any issues known where some javascript/jquery stopped working correctly after some time?
    So what could have happen that made I go wrong so suddenly?
    I will clean up my code now and several test versions again. I also contacted my webhost (bluehost) about that.

    Thread Starter ben_aaron

    (@ben_aaron)

    I did that. It worked without a problem. And exactly that is the problem: It stops coding the responses correctly all of the sudden. If it were for each user or irregularly I would be very confident that it is in the code, but it appears to stop working altogether for all users at a random moment.

    Thread Starter ben_aaron

    (@ben_aaron)

    If you click on Next the task starts. Sorry I didn’t mention that.

    Thread Starter ben_aaron

    (@ben_aaron)

    It is this variable that is broken: respcor

    I code the responses and save them to respcor in this part:

    if (code == 97 || code == 108 || code == 65 || code == 76) {
    		if(listen == false) return;
    	  	if (newword.type == "irrelevant" && code == 97 || newword.type == "irrelevant" && code == 65) {
    	  		$("#false").fadeIn(50).delay(200).fadeOut(50);
    			respcor = 0; cor.push(respcor);
    	  	}
    		if (newword.type == "irrelevant" && code == 108 || newword.type == "irrelevant" && code == 76) {
    	  		//$("#false").fadeIn(50).delay(200).fadeOut(50);
    			respcor = 1; cor.push(respcor);
    	  	}
    		if (newword.type == "target" && code == 97 || newword.type == "target" && code == 65) {
    	  		//$("#false").fadeIn(50).delay(200).fadeOut(50);
    			respcor = 1; cor.push(respcor);
    	  	}
    		if (newword.type == "target" && code == 108 || newword.type == "target" && code == 76) {
    	  		$("#false").fadeIn(50).delay(200).fadeOut(50);
    			respcor = 0; cor.push(respcor);
    	  	}
    		if (newword.type == "probe" && code == 97 || newword.type == "probe" && code == 65) {
    	  		$("#false").fadeIn(50).delay(200).fadeOut(50);
    			respcor = 0; cor.push(respcor);
    	  	}
    		if (newword.type == "probe" && code == 108 || newword.type == "probe" && code == 76) {
    	  		//$("#false").fadeIn(50).delay(200).fadeOut(50);
    			respcor = 1; cor.push(respcor);
    	  	}
    Thread Starter ben_aaron

    (@ben_aaron)

    Found help on stackoverflow quickly: I forgot to call the html elements on my wordpress page to the php template
    This helped me out:

    <?php while (have_posts()) : the_post();
        the_content();
    endwhile; ?>
    Thread Starter ben_aaron

    (@ben_aaron)

    Maybe this is even better:

    The code for the template:

    <?php
    /*
    Template Name: Raw Page
    */

    And: I host via bluehost, and have put it via file manager into the public_html –> … themes directory and my template appears in wordpress.

Viewing 6 replies - 1 through 6 (of 6 total)