Luukieboy schreef:http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02035108&cc=us&dlc=en&lc=en&jumpid=reg_R1002_USENIk weet niet of het hier hoort, maar weet niet waar het anders kan.
Heb een vraagje over het toetsenbord van mijn laptop.
Ik hinder me al heel lang aan het volgende;
Van f1 t/m f12 staat wel een tekentje (zoals geluid, scherm, internet, doorspoelen)
Alleen als ik dan op f2 druk voert de laptop niet f2 uit maar scherm dimmen.
Als ik wil dat het toetsenbord f2 uitvoert (bijv. in een game) moet ik ctrl + f2 drukken.
Ik wil graag dat het andersom is, dus;
Als ik f2 indruk dat het automatisch f2 uitvoert, en niet het dimmen van scherm.
Hinder me al 2 jaar aan, maar heb nooit iets gevonden om dat te veranderen.
Is vooral heel hinderlijk als je aan het gamen bentHeb een HP pavilion g6 notebook.
Iemand enig idee hoe ik dit kan veranderen?
Zou ook niet weten hoe ik dit op google moet verwoorden, dus vandaar dat ik het hier vraag
Kleine Vragen Topic #3
Ik heb echt geen idee waar ik het moet zoeken bij deze error:
Deze fout krijg ik op de pagina adm_facturen.php waarvan de eerste paar regels zijn:
Codeblok (adm_facturen.php):
1
2
3
4
5
6
include ../config.php;
include "header.php";
$_SESSION[file_dir] = __DIR__; $_SESSION[file_name] = __FILE__;
include "../menu.php";
?>
De config.php ziet er zo uit:
Codeblok (config.php):
1
2
3
4
5
6
7
8
9
10
11
12
13
session_start();
// MySQL gegevens
$dbhost = "localhost";
$dbuser = "xxx";
$dbpass = "xxx";
$dbname = "xxx";
// Databaseverbinding
$db = new MySQLi($dbhost, $dbuser, $dbpass, $dbname);
enz...
Wie helpt me uit deze mindfuck?
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/xxx/domains/xxx/public_html/facturatie/administratie/adm_facturen.php:1) in /home/xxx/domains/xxx/public_html/facturatie/config.php on line 2 Deze fout krijg ik op de pagina adm_facturen.php waarvan de eerste paar regels zijn:
Codeblok (adm_facturen.php):
1
2
3
4
5
6
include ../config.php;
include "header.php";
$_SESSION[file_dir] = __DIR__; $_SESSION[file_name] = __FILE__;
include "../menu.php";
?>
De config.php ziet er zo uit:
Codeblok (config.php):
1
2
3
4
5
6
7
8
9
10
11
12
13
session_start();
// MySQL gegevens
$dbhost = "localhost";
$dbuser = "xxx";
$dbpass = "xxx";
$dbname = "xxx";
// Databaseverbinding
$db = new MySQLi($dbhost, $dbuser, $dbpass, $dbname);
enz...
Wie helpt me uit deze mindfuck?
Bugged schreef:Ik heb echt geen idee waar ik het moet zoeken bij deze error:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/xxx/domains/xxx/public_html/facturatie/administratie/adm_facturen.php:1) in /home/xxx/domains/xxx/public_html/facturatie/config.php on line 2 Deze fout krijg ik op de pagina adm_facturen.php waarvan de eerste paar regels zijn:
Codeblok (adm_facturen.php):
1
2
3
4
5
6
include ../config.php;
include "header.php";
$_SESSION[file_dir] = __DIR__; $_SESSION[file_name] = __FILE__;
include "../menu.php";
?>
De config.php ziet er zo uit:
Codeblok (config.php):
1
2
3
4
5
6
7
8
9
10
11
12
13
session_start();
// MySQL gegevens
$dbhost = "localhost";
$dbuser = "xxx";
$dbpass = "xxx";
$dbname = "xxx";
// Databaseverbinding
$db = new MySQLi($dbhost, $dbuser, $dbpass, $dbname);
enz...
Wie helpt me uit deze mindfuck?
Volgensmij moet include header.php helemaal bovenaan. Tenminste dat is wat mij geleerd is.
toevoeging op 23 november 2014, 17:08:46:
Zal trouwens wel niet

Stefvdwel schreef:1Eerdere citaten tonen
Bugged schreef:Ik heb echt geen idee waar ik het moet zoeken bij deze error:Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/xxx/domains/xxx/public_html/facturatie/administratie/adm_facturen.php:1) in /home/xxx/domains/xxx/public_html/facturatie/config.php on line 2
Deze fout krijg ik op de pagina adm_facturen.php waarvan de eerste paar regels zijn:
Codeblok (adm_facturen.php):
2
3
4
5
6
include ../config.php;
include "header.php";
$_SESSION[file_dir] = __DIR__; $_SESSION[file_name] = __FILE__;
include "../menu.php";
?>
De config.php ziet er zo uit:
Codeblok (config.php):
1
2
3
4
5
6
7
8
9
10
11
12
13
session_start();
// MySQL gegevens
$dbhost = "localhost";
$dbuser = "xxx";
$dbpass = "xxx";
$dbname = "xxx";
// Databaseverbinding
$db = new MySQLi($dbhost, $dbuser, $dbpass, $dbname);
enz...
Wie helpt me uit deze mindfuck?
Volgensmij moet include header.php helemaal bovenaan. Tenminste dat is wat mij geleerd is.
In de header zit sws output, dus dan krijg je sws deze error

Hoe zorg ik ervoor dat de volgende vraag random gekozen word en niet de volgende word?
Codeblok (vragen.js):
1
2
3
4
5
6
7
8
9
10
11
12
function changeQuestion(){
questionNumber++;
if(stage=="#game1"){stage2="#game1";stage="#game2";}
else{stage2="#game2";stage="#game1";}
if(questionNumber
$(stage2).animate({"right": "+=800px"},"slow", function() {$(stage2).css(right,-800px);$(stage2).empty();});
$(stage).animate({"right": "+=800px"},"slow", function() {questionLock=false;});
}//change question
Codeblok (vragen.js):
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
function displayQuestion(){
var rnd=Math.random()*3;
rnd=Math.ceil(rnd);
var q1;
var q2;
var q3;
if(rnd==1){q1=questionBank[questionNumber][1];q2=questionBank[questionNumber][2];q3=questionBank[questionNumber][3];}
if(rnd==2){q2=questionBank[questionNumber][1];q3=questionBank[questionNumber][2];q1=questionBank[questionNumber][3];}
if(rnd==3){q3=questionBank[questionNumber][1];q1=questionBank[questionNumber][2];q2=questionBank[questionNumber][3];}
$(stage).append(
$(.option).click(function(){
if(questionLock==false){questionLock=true;
//correct answer
if(this.id==rnd){
$(stage).append(
score++;
}
//wrong answer
if(this.id!=rnd){
$(stage).append(
}
setTimeout(function(){changeQuestion()},1000);
}})
}//display question
Als iemand de code voor mij wilt aanpassen is dat heel lief.
Codeblok (vragen.js):
1
2
3
4
5
6
7
8
9
10
11
12
function changeQuestion(){
questionNumber++;
if(stage=="#game1"){stage2="#game1";stage="#game2";}
else{stage2="#game2";stage="#game1";}
if(questionNumber
$(stage2).animate({"right": "+=800px"},"slow", function() {$(stage2).css(right,-800px);$(stage2).empty();});
$(stage).animate({"right": "+=800px"},"slow", function() {questionLock=false;});
}//change question
Codeblok (vragen.js):
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
function displayQuestion(){
var rnd=Math.random()*3;
rnd=Math.ceil(rnd);
var q1;
var q2;
var q3;
if(rnd==1){q1=questionBank[questionNumber][1];q2=questionBank[questionNumber][2];q3=questionBank[questionNumber][3];}
if(rnd==2){q2=questionBank[questionNumber][1];q3=questionBank[questionNumber][2];q1=questionBank[questionNumber][3];}
if(rnd==3){q3=questionBank[questionNumber][1];q1=questionBank[questionNumber][2];q2=questionBank[questionNumber][3];}
$(stage).append(
+questionBank[questionNumber][0]+
+q1+
+q2+
+q3+
);Je hebt al +score+ antwoorden goed.En al +fout+ antwoorden fout.
$(.option).click(function(){
if(questionLock==false){questionLock=true;
//correct answer
if(this.id==rnd){
$(stage).append(
CORRECT
);score++;
}
//wrong answer
if(this.id!=rnd){
$(stage).append(
WRONG
);}
setTimeout(function(){changeQuestion()},1000);
}})
}//display question
Als iemand de code voor mij wilt aanpassen is dat heel lief.

Robindh schreef:Thnx! Het is geluktHeb een vraagje over het toetsenbord van mijn laptop.Eerdere citaten tonen
Luukieboy schreef:Ik weet niet of het hier hoort, maar weet niet waar het anders kan.
Ik hinder me al heel lang aan het volgende;
Van f1 t/m f12 staat wel een tekentje (zoals geluid, scherm, internet, doorspoelen)
Alleen als ik dan op f2 druk voert de laptop niet f2 uit maar scherm dimmen.
Als ik wil dat het toetsenbord f2 uitvoert (bijv. in een game) moet ik ctrl + f2 drukken.
Ik wil graag dat het andersom is, dus;
Als ik f2 indruk dat het automatisch f2 uitvoert, en niet het dimmen van scherm.
Hinder me al 2 jaar aan, maar heb nooit iets gevonden om dat te veranderen.
Is vooral heel hinderlijk als je aan het gamen bentHeb een HP pavilion g6 notebook.
Iemand enig idee hoe ik dit kan veranderen?
Zou ook niet weten hoe ik dit op google moet verwoorden, dus vandaar dat ik het hier vraag
http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02035108&cc=us&dlc=en&lc=en&jumpid=reg_R1002_USEN

Robindh schreef:Codeblok (vragen.js):Hoe zorg ik ervoor dat de volgende vraag random gekozen word en niet de volgende word?
1
2
3
4
5
6
7
8
9
10
11
12
function changeQuestion(){
questionNumber++;
if(stage=="#game1"){stage2="#game1";stage="#game2";}
else{stage2="#game2";stage="#game1";}
if(questionNumber
$(stage2).animate({"right": "+=800px"},"slow", function() {$(stage2).css(right,-800px);$(stage2).empty();});
$(stage).animate({"right": "+=800px"},"slow", function() {questionLock=false;});
}//change question
Codeblok (vragen.js):
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
function displayQuestion(){
var rnd=Math.random()*3;
rnd=Math.ceil(rnd);
var q1;
var q2;
var q3;
if(rnd==1){q1=questionBank[questionNumber][1];q2=questionBank[questionNumber][2];q3=questionBank[questionNumber][3];}
if(rnd==2){q2=questionBank[questionNumber][1];q3=questionBank[questionNumber][2];q1=questionBank[questionNumber][3];}
if(rnd==3){q3=questionBank[questionNumber][1];q1=questionBank[questionNumber][2];q2=questionBank[questionNumber][3];}
$(stage).append(
+questionBank[questionNumber][0]+
+q1+
+q2+
+q3+
);Je hebt al +score+ antwoorden goed.En al +fout+ antwoorden fout.
$(.option).click(function(){
if(questionLock==false){questionLock=true;
//correct answer
if(this.id==rnd){
$(stage).append(
CORRECT
);score++;
}
//wrong answer
if(this.id!=rnd){
$(stage).append(
WRONG
);}
setTimeout(function(){changeQuestion()},1000);
}})
}//display question
Als iemand de code voor mij wilt aanpassen is dat heel lief.

Kijk eens naar math. en dan floor en rand functie. Kan je random getal mee genereren.
Bugged schreef:Ik heb echt geen idee waar ik het moet zoeken bij deze error:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/xxx/domains/xxx/public_html/facturatie/administratie/adm_facturen.php:1) in /home/xxx/domains/xxx/public_html/facturatie/config.php on line 2 Deze fout krijg ik op de pagina adm_facturen.php waarvan de eerste paar regels zijn:
Codeblok (adm_facturen.php):
1
2
3
4
5
6
include ../config.php;
include "header.php";
$_SESSION[file_dir] = __DIR__; $_SESSION[file_name] = __FILE__;
include "../menu.php";
?>
De config.php ziet er zo uit:
Codeblok (config.php):
1
2
3
4
5
6
7
8
9
10
11
12
13
session_start();
// MySQL gegevens
$dbhost = "localhost";
$dbuser = "xxx";
$dbpass = "xxx";
$dbname = "xxx";
// Databaseverbinding
$db = new MySQLi($dbhost, $dbuser, $dbpass, $dbname);
enz...
Wie helpt me uit deze mindfuck?
Session al gestart? Er bestaat zon optie ob_flush() en ob_clean(). Zoek maar op.
Bugged schreef:Ik heb echt geen idee waar ik het moet zoeken bij deze error:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/xxx/domains/xxx/public_html/facturatie/administratie/adm_facturen.php:1) in /home/xxx/domains/xxx/public_html/facturatie/config.php on line 2 Deze fout krijg ik op de pagina adm_facturen.php waarvan de eerste paar regels zijn:
Codeblok (adm_facturen.php):
1
2
3
4
5
6
include ../config.php;
include "header.php";
$_SESSION[file_dir] = __DIR__; $_SESSION[file_name] = __FILE__;
include "../menu.php";
?>
De config.php ziet er zo uit:
Codeblok (config.php):
1
2
3
4
5
6
7
8
9
10
11
12
13
session_start();
// MySQL gegevens
$dbhost = "localhost";
$dbuser = "xxx";
$dbpass = "xxx";
$dbname = "xxx";
// Databaseverbinding
$db = new MySQLi($dbhost, $dbuser, $dbpass, $dbname);
enz...
Wie helpt me uit deze mindfuck?
Probeer dit eens:
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR]session_status[COLOR= #007700]() ==[/COLOR] PHP_SESSION_NONE[COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/session_start"]session_start[/URL][COLOR= #007700]();
}[/COLOR] toevoeging op 24 november 2014, 07:51:34:
Robiin schreef:1Eerdere citaten tonen
Bugged schreef:Ik heb echt geen idee waar ik het moet zoeken bij deze error:Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/xxx/domains/xxx/public_html/facturatie/administratie/adm_facturen.php:1) in /home/xxx/domains/xxx/public_html/facturatie/config.php on line 2
Deze fout krijg ik op de pagina adm_facturen.php waarvan de eerste paar regels zijn:
Codeblok (adm_facturen.php):
2
3
4
5
6
include ../config.php;
include "header.php";
$_SESSION[file_dir] = __DIR__; $_SESSION[file_name] = __FILE__;
include "../menu.php";
?>
De config.php ziet er zo uit:
Codeblok (config.php):
1
2
3
4
5
6
7
8
9
10
11
12
13
session_start();
// MySQL gegevens
$dbhost = "localhost";
$dbuser = "xxx";
$dbpass = "xxx";
$dbname = "xxx";
// Databaseverbinding
$db = new MySQLi($dbhost, $dbuser, $dbpass, $dbname);
enz...
Wie helpt me uit deze mindfuck?
Session al gestart? Er bestaat zon optie ob_flush() en ob_clean(). Zoek maar op.
Hiervoor hoef je niet te bufferen hoor
Xjessex schreef:1Codeblok (vragen.js):Eerdere citaten tonen
Robindh schreef:Hoe zorg ik ervoor dat de volgende vraag random gekozen word en niet de volgende word?
2
3
4
5
6
7
8
9
10
11
12
function changeQuestion(){
questionNumber++;
if(stage=="#game1"){stage2="#game1";stage="#game2";}
else{stage2="#game2";stage="#game1";}
if(questionNumber
$(stage2).animate({"right": "+=800px"},"slow", function() {$(stage2).css(right,-800px);$(stage2).empty();});
$(stage).animate({"right": "+=800px"},"slow", function() {questionLock=false;});
}//change question
Codeblok (vragen.js):
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
function displayQuestion(){
var rnd=Math.random()*3;
rnd=Math.ceil(rnd);
var q1;
var q2;
var q3;
if(rnd==1){q1=questionBank[questionNumber][1];q2=questionBank[questionNumber][2];q3=questionBank[questionNumber][3];}
if(rnd==2){q2=questionBank[questionNumber][1];q3=questionBank[questionNumber][2];q1=questionBank[questionNumber][3];}
if(rnd==3){q3=questionBank[questionNumber][1];q1=questionBank[questionNumber][2];q2=questionBank[questionNumber][3];}
$(stage).append(
+questionBank[questionNumber][0]+
+q1+
+q2+
+q3+
);Je hebt al +score+ antwoorden goed.En al +fout+ antwoorden fout.
$(.option).click(function(){
if(questionLock==false){questionLock=true;
//correct answer
if(this.id==rnd){
$(stage).append(
CORRECT
);score++;
}
//wrong answer
if(this.id!=rnd){
$(stage).append(
WRONG
);}
setTimeout(function(){changeQuestion()},1000);
}})
}//display question
Als iemand de code voor mij wilt aanpassen is dat heel lief.

Kijk eens naar math. en dan floor en rand functie. Kan je random getal mee genereren.
Dit heb ik al geprobeerd maar kwam er niet helemaal uit. Zal het straks nog eens proberen.
Iemand enig idee hoe ik een button on klikbaar maak in ckeditor? En als de tekst veranderd dat de button clickbaar is.
Mijn Plugin.
Codeblok (voorbeeld.php):
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CKEDITOR.plugins.add(save,
{
icons: save,
init: function(editor)
{
var pluginName = save;
editor.addCommand( pluginName,
{
exec : function( editor )
{
console.log(editor.getSnapshot());
}
});
editor.ui.addButton(save,
{
label: Save,
command: pluginName,
toolbar: saveb
});
}
});
Mijn Plugin.
Codeblok (voorbeeld.php):
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CKEDITOR.plugins.add(save,
{
icons: save,
init: function(editor)
{
var pluginName = save;
editor.addCommand( pluginName,
{
exec : function( editor )
{
console.log(editor.getSnapshot());
}
});
editor.ui.addButton(save,
{
label: Save,
command: pluginName,
toolbar: saveb
});
}
});
Als ik:
Codeblok (random.js):
1
var Nummer=Math.floor((Math.random() * 10) + 1);
gebruik hoe zorg ik er dan voor dat de opvolgende nummers ook random zijn.
En er niet maar 1x een random nummer word uitgekozen?
Codeblok (random.js):
1
var Nummer=Math.floor((Math.random() * 10) + 1);
gebruik hoe zorg ik er dan voor dat de opvolgende nummers ook random zijn.
En er niet maar 1x een random nummer word uitgekozen?
for?
Ik heb het werkend gekregen, iedereen bedankt voor zijn bijdrage. 
var Nummer1=Math.floor((Math.random() * 10) + 1);
var Nummer2=Math.floor((Math.random() * 10) + 1);
var Nummer3=Math.floor((Math.random() * 10) + 1);
toevoeging op 24 november 2014, 18:37:00:
Oh zag de nieuwe pagina niet.
var Nummer2=Math.floor((Math.random() * 10) + 1);
var Nummer3=Math.floor((Math.random() * 10) + 1);
toevoeging op 24 november 2014, 18:37:00:
Oh zag de nieuwe pagina niet.
Heb een HP pavilion g6 notebook.