I have a question regarding the access of html elements.
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?
}
Is this flow possible? Because I can't make it work.
Help..
file1.phpwith AJAX tofile3.phpDOMwith JavaScript and grab all the values you need from the table and then send them through AJAX. I'm pretty sure what you're looking for is the data and not the table itself.