0
이 Ajax 요청은 작동하지만 인수가 getHint.php ($_POST['targetId']
이 비어 있음)에 게시되지 않은 것처럼 보입니다. 내가 뭘 잘못하고 있는거야?인수가 Ajax 요청과 함께 게시되지 않았습니다.
많은 감사
postAjaxRequestFunktion(minFunktion, 'getHint.php', 'targetId = ' + playId)
function postAjaxRequestFunktion(minFunk,minUrl, mittArg)
{
var contenttype = 'application/x-www-form-urlencoded'
var minRequest = new skapaAjaxObjekt(minFunk)
if (!minRequest) return false
minRequest.open('POST', minUrl, true)
minRequest.setRequestHeader('Content-type', contenttype)
minRequest.setRequestHeader('Content-length', mittArg.length)
minRequest.setRequestHeader('Connection', 'close')
minRequest.send(mittArg)
return true
}
function skapaAjaxObjekt(minFunk)
{
try { var minRequest = new XMLHttpRequest() }
catch(e1) { try { minRequest = new ActiveXObject("Msxml2.XMLHTTP") }
catch(e2) { try { minRequest = new ActiveXObject("Microsoft.XMLHTTP") }
catch(e3) { minRequest = false }}}
if (minRequest) minRequest.onreadystatechange = function()
{
if (this.readyState == 4 && this.status == 200 &&
this.responseText != null)
minFunk.call(this.responseText)
}
return minRequest
}
function minFunktion()
{
hintArray = eval('(' + this + ')');
}
getHint.php :
$targetId = $_POST['targetId'];
HTML을 보여 주시겠습니까? – Lion
나는 당신이 볼 필요가있는 HTML이 무엇인지 모르겠습니다. – Fred