html 요소에 대한 액세스와 관련하여 질문이 있습니다.PHP에서 HTML 테이블에 액세스
File1.PHP
<table id="tableID">
<tr>
<td> 
</td>
</tr>
</table>
<input type=button onclick=changeValue();>
<script type="text/javascript" src="file2.JS"></script>
File2.JS
function changeValue(){
//HAS AJAX OBJECT THAT CALLS file3.php to read a file
ajax.doPost("file3.php", callback); }
File3.php
function fileRead(){
...
$line = fgets($file_handle);
///After reading the lines of the file in File3.php
///I want to output it in the table in File1.PHP without returning
///it as xmlResponse to File2.JS
///Is it possible to acces the table in File1.PHP here?
}
이 흐름 가능한 사람인가? 왜냐하면 내가 할 수 없어.
도움말 ..
감사합니다,
그것은 훨씬 쉽게 수 있습니다 AJAX로'file1.php'에서 필요한 모든 값을'file3.php'에 넘기는다면 –
@KemalFadillah 당신은 file2.js에서 table 객체를 얻고 file3.php로 넘겨주는 것을 의미합니까? – tinks
실제로 JavaScript로 DOM을 탐색하고 필요한 모든 값을 테이블에서 가져 와서 AJAX를 통해 보냈습니다. 나는 당신이 찾고있는 것이 데이터와 테이블 자체가 아니라는 것을 확신한다. –