jQuery 1.3.2 update to 1.4.2 : ifModified option doesn't still work.
Hello,
I got a problem which I can solved by myself.
I got a very simple AJAX script which doesn't still work since I change my Jquery version.
It seems to ignore "ifModified:true" option and continue to append content in my page.
index.php
- <!--<script type="text/javascript" src="jquery-1.4.2.min.js"></script>-->
- <script type="text/javascript" src="jquery-1.3.2.min.js"></script>
- <script type="text/javascript">
- function refresh(){
- $.ajax({
- url: "loaded.php",
- ifModified:true,
- success: function(content){
- $(".result").append(content+'<br/>');
-
- }
- });
-
- setTimeout(function(){
- refresh();
- }, 3000);
- }
- $(function(){
- refresh();
- });
- </script>
Loaded.php
- <?php
- //header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
- header("Last-Modified: Sat, 26 Jul 1997 05:00:00 GMT");
- echo gmdate("D, d M Y H:i:s");
- ?>
Could you help me, I have no more idea.
(Excuse my English, I'm French)