d

ajax prototype 에러

이소스가 안되네요.
IE만 되고 그 외는 안되네요.
로그인 폼에서 뛰어온건데
<script src="http://itools.me/js/prototype.js"></script>
<script >
function reg_mb_id_check() {
var url = "http://itools.me/sagi.html";
var para = "";//"reg_mb_id="+encodeURIComponent($F('reg_mb_id'));
var myAjax = new Ajax.Request(
url,
{
method: 'post',
// 주소창 보안 방지 javascript:void(document.fregisterform.mb_id_enabled.value='000');
// 동기식 (폼전송시 입력값이 바른지 검사한 후 mb_id_enabled 를 체크하기 때문)
asynchronous: false,
onFailure: reportError,
parameters: para,
onComplete: return_reg_mb_id_check
});
}
function reportError(request)
{
alert('Sorry. There was an error.');
}

function return_reg_mb_id_check(req) {
// var msg = $('msg_mb_id');
var result = req.responseText;
alert( '잘못된 접근입니다.\n\n' + result );

// $('mb_id_enabled').value = result;
}

reg_mb_id_check();
</script>

<script>
function getHTML()
{
var url = 'http://itools.me';
var pars ='';//= 'someParameter=ABC';

var myAjax = new Ajax.Updater( {success: 'placeholder'}, url, { method: 'get', parameters: pars, onFailure: reportError });

}

function reportError(request)
{
alert('Sorry. There was an error.');
}
</script>

<input type=button value=GetHtml onclick="getHTML()">
<div id="placeholder"></div>
|
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
17년 전 조회 744
17년 전 조회 753
17년 전 조회 662
17년 전 조회 769
17년 전 조회 2,672
17년 전 조회 860
17년 전 조회 753
17년 전 조회 644
17년 전 조회 1,641
17년 전 조회 962
17년 전 조회 665
17년 전 조회 741
17년 전 조회 1,335
17년 전 조회 764
17년 전 조회 584
17년 전 조회 666
17년 전 조회 704
17년 전 조회 943
17년 전 조회 747
17년 전 조회 750
🐛 버그신고