...
[ Voor 105% gewijzigd door Verwijderd op 29-05-2018 16:53 ]
Klaar voor een nieuwe uitdaging.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| function xmlhttpPost(strURL) { var xmlHttpReq = new XMLHttpRequest(); if (xmlHttpReq) { xmlHttpReq.open('POST', strURL, true); xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xmlHttpReq.onreadystatechange = function() { if (xmlHttpReq.readyState == 4) updatepage(xmlHttpReq.responseText); } xmlHttpReq.send(getquerystring()); } } |
Intentionally left blank
Lijkt mij een gevalletje van een same-domain violation - oftewel: je moet je Ajax-pagina ook openen vanaf localhost en niet bijvoorbeeld als bestand in je browser laden.Verwijderd schreef op dinsdag 23 januari 2007 @ 13:28:
Ja dat is waar,
maar ook dit werkt net zo goed niet:(, Ik blijf deze melding krijgen:
uncaugth exception: Geen toestemming om methode XMLHttpRequest.open op te roepen
Intentionally left blank
en Firefox blijkbaar ook.Cross-domain, cross-port, and mixed protocol requests are not allowed. The sUrl parameter may only specify XML data files in the same domain, using the same port and protocol method, as that from which the page is served.
[ Voor 8% gewijzigd door crisp op 23-01-2007 13:56 ]
Intentionally left blank
Apple iPhone 17 LG OLED evo G5 Google Pixel 10 Samsung Galaxy S25 Star Wars: Outlaws Nintendo Switch 2 Apple AirPods Pro (2e generatie) Sony PlayStation 5 Pro
Tweakers is onderdeel van
DPG Media B.V.
Alle rechten voorbehouden - Auteursrecht © 1998 - 2025
•
Hosting door TrueFullstaq