JQuery의 Ajax 함수, 특히 url 매개 변수에 대한 간단한 질문입니다.JQuery Ajax Url 질문
내 디렉토리 구조는 그래서 같다 :
contact.html
process.php
- elements
- js
- jquery.js
- library.js
코드 아래
...
// Post with Ajax
$.ajax
({
type : 'POST',
url : '../../process.php',
data : fulldata,
success: function()
{
$('#contact_form #placeholder').html("<div id='success_box'><h3>Message Recieved</h3><p>We will be in touch very soon!</p></div>");
$('#contact_form form').hide();
},
error: function(xhr)
{
alert('Request Status: ' + xhr.status + ' Status Text: ' + xhr.statusText + ' ' + xhr.responseText);
}
});
return false;
내가 양식을 제출
모든 시간, 그것은 내가 생각하는 것이 오류를 뱉어 url. Ajax를 사용하여 process.php 파일을 올바르게 지정하려면 어떻게해야합니까?
감사