Examples - File Viewer

This example is very simple, we request the selected file from the server and put its content into an HTML field without reloading the page. This time we don't send any client information to the server.

A sample code

---Select file to view its content---
<div>
    <a onclick="dynajax.request('respfile: sample.txt; resultloc: result;')">sample.txt</a>
</div>

---Place to display Content---
<div id="result"></div>


File Viewer in action

sample.txt
sample.html
servertime.php (dynamic content)
myipaddress.php (dynamic content)


Notes:


Click here to proceed to the next example
Click here to get DynAjax