Zoho Viewer (Microsoft Office/Open Office/Open Document/PDF) The full list of supported file types is available here | Google Docs Viewer (PDF/TIFF/Power Point) |
Source code / Explanation
<form xmlns="http://www.w3.org/1999/xhtml" action="http://docs.google.com/viewer" method="get">
Get action type to append form data to the end of the action URL
Get action type to append form data to the end of the action URL
File URL:
<input name="url" type="text" id="fileurl" value="http://" /><br>
Add to the end of the action URL: ?url=[text] where [text] is the value entered by the user
<input name="url" type="text" id="fileurl" value="http://" /><br>
Add to the end of the action URL: ?url=[text] where [text] is the value entered by the user
Embedded viewer:
<input type="checkbox" name="embedded" value="true"><br>
Shows a checkbox, currently unchecked, if checked will add &embedded=true currently adds nothing, value=[] indicates what will be send if checked
<input type="checkbox" name="embedded" value="true"><br>
Shows a checkbox, currently unchecked, if checked will add &embedded=true currently adds nothing, value=[] indicates what will be send if checked
<input type="submit" value="View" />
<input type="reset" />
</form>
<input type="reset" />
</form>
In the Zoho Viewer form above I've also added radio buttons like this:
<input name="cache" type="radio" value="false" /> No<br />
<input name="cache" type="radio" value="true" checked /> Yes<br />
And to make the form open in a new window, the <form line also has: target="_blank"
Unrelated to the above viewer - here is a sample URL sent using form Get method
