[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Webmasterplein.net • Toon onderwerp - [JS] AJAX , responds fout.
aan alle goede dingen komt een eind, webmasterplein.net 2003 - 2013
wij danken jullie voor al mooie momenten die dankzij dit forum ontstonden - Derk, Rutger en Stef

[JS] AJAX , responds fout.

Het echte opmaakwerk, alles vragen over HTMLen, CSSen en Javascripten.

[JS] AJAX , responds fout.

Berichtdoor svennson » 22 aug 2006 17:35

hoi ,
Ik maak zo'n auto validate script die dus meteen controleerd via php of alles wel goed is. Alles liep goed tot nu (ongeveer 3 uur geleden) ik moet 2 dingen op mijn pagina krijgen, appart werken ze maar wanneer ik ze beide in [code="javascript"]onchange="updatePaswoord();updateImg();"[/code] een zet werken ze beide niet. Nu werken ze beide in IE maar FF doet weer moeilijk Razz wat zit er fout ? ik probeerde al heel wat combinaties maar FF blijft moeilijk doen. En geeft niets terug.
dit is de JS die ik gebruik. het zit zeker hierin want appart werken ze heel goed. maar ze moeten alle bij werken.
[code="javascript"]
function updatePaswoord() {
var passwordx = document.getElementById("passwordx").value;
function abc() {
http.open("GET", urlpassword + escape(passwordx), true);
http.onreadystatechange = handleHttpResponsepaswoord;
http.send(null);
}

function dbe() {
http.open("GET", urlimg + escape(passwordx), true);
http.onreadystatechange = handleHttpResponseimg;
http.send(null);
}
dbe();
abc();
}

function handleHttpResponsepaswoord() {
if (http.readyState == 4) {
results = http.responseText;
var passwordx = document.getElementById("passwordx").value;
document.getElementById('pas').innerHTML = results;

}

}
function handleHttpResponseimg() {
if (http.readyState == 4) {
resultsx = http.responseText;
var namex = document.getElementById("passwordx").value;
document.getElementById('img').innerHTML = resultsx;
}
}[/code]
een half werken voorbeeld vind je hier :
het gaat op phpbb 3 B2 dus je moet even eerst akkoort gaan. de sumbit button ga ik zo wegdoen omdat ik niet wil spammen, maar sommigen gaan het vermoedelijk niet begrijpen anders Oops

grt svenn
svennson
 

Re: [JS] AJAX , responds fout.

Berichtdoor Rik » 22 aug 2006 19:19

Het gaat 't om het object voor je ajax geval,
Voeg dit eens toe:
if(window.XMLHttpRequest){
[code="html"]function createRequestObject() {

var req;

if(window.XMLHttpRequest){
req = new XMLHttpRequest();
} else if(window.ActiveXObject) {
req = new ActiveXObject("Microsoft.XMLHTTP");
}

return req;

}
var http;
http = createRequestObject();[/code]Mischien werkt dit.
En ligt het anders niet aan de volgorde van de functies?

Bloe.
Avatar gebruiker
Rik
wmpr
 
Berichten: 1576
Geregistreerd: 11 jun 2005 17:59

Re: [JS] AJAX , responds fout.

Berichtdoor svennson » 23 aug 2006 09:20

bedankt; ik heb dit staan een beetje verder in het javascript :

[code="javascript"]function getHTTPObject() {
var xmlhttp;
/*@cc_on
@if (@_jscript_version >= 5)
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
xmlhttp = false;
}
}
@else
xmlhttp = false;
@end @*/
if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
try {
xmlhttp = new XMLHttpRequest();
} catch (e) {
xmlhttp = false;
}
}
return xmlhttp;
}

var http = getHTTPObject();
[/code]

lijkt me hetzelfde ?
svennson
 

Re: [JS] AJAX , responds fout.

Berichtdoor svennson » 23 aug 2006 09:24

Nope nog steeds niet Sad

ook probeerder ik dit; 2 apparte functies in dit :
[code="javascript"]function paschecker() {
updatePaswoord();
updateImg();
} [/code]

maar toen werkte er in IE 1tje en in FF geen enkele
svennson
 

Re: [JS] AJAX , responds fout.

Berichtdoor svennson » 30 aug 2006 13:56

svennson
 


Keer terug naar HTML, CSS, Javascript



cron