Example - 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

Notes:
Altough this method could be used to highly speed up a website's navigation, saving significant amount of bandwidth, I don't recommend to use it for a public website's navigation. That way the webpages wouldn't have unique urls, wich is necessary to have the page correctly indexed by searchengines. This usually doesn't concern web applications.

Instant voting