Jump to content

Krystal

New Members
  • Posts

    3
  • Joined

  • Last visited

Krystal's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. If anyone can show me an example applied on posts i put instead of explanation, that would be really great and helpful.
  2. Can you show me an example applied to the codes i posted?
  3. Hi guys. I'm a very very noob at html and I have something like this: <script type="text/javascript"> window.onload=function () { var objDivlog = document.getElementById("txt"); objDivlog.scrollTop = objDivlog.scrollHeight; } </script> </head> <body> <table height="100%" border="0"> <tr> <td width="120px" align="left" valign="top"> <div class="list"> <?php $files = array(); $dir = opendir('logs'); while(false != ($file = readdir($dir))) { if(strpos($file, '.txt') !== FALSE) { $files[] = $file; } } natsort($files); $files = array_reverse($files); foreach($files as $file) { echo ' <a href="#" onclick="$(\'#logfile\').load(\'logs/'.$file.'\');">'.$file.'</a><br>'; } ?> I constantly change the txt files but once it's loaded, it won't change next time. Is there a way to prevent txt files from getting cached? Thanks!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.