aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Html question :  href  to a file : how to make it dynamic link? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Html question :  href  to a file : how to make it dynamic link?" Watch "Html question :  href  to a file : how to make it dynamic link?" New topic
Author

Html question : href to a file : how to make it dynamic link?

Harsha Jay
Ranch Hand

Joined: Jul 23, 2001
Posts: 177
I have a html page and it points to a file, It shows the file contents.
When ever I refresh the browser, it displays the updated file
Is there a way fo the browser to dynamically display the file contents whenever a file changes without having to refresh?

-------------------------------------------
Thanks for reading
Harsha
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You are going to have to refresh the page but there might be a way to make it less dramatic.
You may want to add an iframe to your page where the content is displayed. This way you can refresh the iframe page and the rest of the page will not be affected.
Eric
Harsha Jay
Ranch Hand

Joined: Jul 23, 2001
Posts: 177
Eric,
My question was to get away from refreshing manually, How can I automatically do it?
Is there some way of dynamically achieving this functionality
------------------
Additional info: I am displaying the log-file from the appserver to the browser using the 'ln' command to create links. So I need to let the browser to show the logs when the server is running.
If the above works then I do not have to log in to the Unix box and tail the logs
Thanks
Harsha
Yuriy Fuksenko
Ranch Hand

Joined: Feb 02, 2001
Posts: 413
Choose one from the following:
All examples reload the page after 3 second
1.
<head>
<META HTTP-EQUIV="Refresh" CONTENT="3;URL=http://www.some.org/some.html">
</head>
2.
<script>self.setTimeout("self.location.reload()", 3000);</script>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Html question : href to a file : how to make it dynamic link?