ajax prototype 에러 정보
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>
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>
댓글 전체