2013-07-24 5 views
0

javascript에 해당 페이지를 실제로 표시하지 않고 페이지를로드하는 메소드가 있습니까?자바 스크립트 내에서 페이지로드

데이터베이스 삽입 작업을 처리 할 PHP 페이지를로드하려고합니다.

+1

에 대한 몇 가지 문서 예를 여기

function done() { console.log(this.responseText); // The response from the server }; var XHR = new XMLHttpRequest(); XHR.onload = done; // Set the onload function XHR.open("get", "something.php", true); // Type & File XHR.send(); // Send the request 

입니다 – wwww

답변

1

예이에 대한 XMLHttpRequest을 사용할 수있다. 여기

는 https://developer.mozilla.org/en-US/docs/AJAX 그 MDN XMLHttpRequest

관련 문제