#1 (permalink)  
Old 06-21-2007, 05:00 AM
Registered User
 
Join Date: Apr 2007
Location: Australia
Posts: 20
Force a menu button to read text file (not cached)

I know this should be simple however ....I am kinda new to html tricks

I have created a simple ascii log file on my server that records errors on a continuous basis. I was hoping to have a button on my web page that simply calls this text file into a new window so I can scroll through any error messages. I am using dreamweaver and just use the open browser window function with scroll bars. Works great however the browser seems to cache the text file and never reads the updated file.

How can I configure a button that calls a new window (with scrollbar and width1000 x height 300) that forces the browser to retrieve the text file and not use its cache ?

cheers

rob Australia
Reply With Quote

  #2 (permalink)  
Old 06-21-2007, 09:41 AM
Registered User
 
Join Date: Jan 2007
Posts: 99
Hmm.. I just tried this and it worked for me:

Code:
<html>
<body>
<a href="#" onclick="Popup=window.open('test.txt','Popup','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no, width=1000,height=300,'); return false;"> Test Window</a>
</body>
</html>
When I click the button it loads test.txt. I have changed the contents of test.txt and each time it loaded it without me doing a refresh or anything. Here's a working example:
http://www.peppermint-bay.com/test3.htm
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Radio button form w. one custom text box choice? russ_offord Programming and Scripting 8 11-06-2008 09:33 PM
Flash Menu Error bmarino Graphics and Flash 2 04-09-2007 01:19 AM
Problem with writing file in perl gugabaga Programming and Scripting 1 06-27-2006 09:17 AM
Replacing a field separator during a read. NevadaSam Programming and Scripting 2 04-29-2006 02:53 PM
Creating a file and saving it locally - PHP curtiss Programming and Scripting 6 03-25-2006 12:26 PM


All times are GMT -5. The time now is 02:37 PM.

 
Bitrix
Clicky Web Analytics
CloudContacts
Maxtango


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
© 1997-2007 HTMLCenter