Welcome Guest, Not a member yet? Register   Sign In
JQuery & AJAX & IE Div Caching...
#1

[eluser]internut[/eluser]
Hey all,

If anyone can look this over and point me in the right direction... What I have works great in Firefox. Div loads new data no problem after the controller is called which calls the model and adds a record to the DB. IE it adds a record to the database as well but the DIV is not refreshing like FireFox does and showing the new data.

I've researched high and low, tried many things but to no avail. Should I be doing something other then .load ? Seems like a cache issue which I see a lot of google posts about but what I've tried is not fixing it on the explorer side.

In my view file:

Code:
[removed]
$(function(){

  $('#submit').click(function(){

    $.ajax({
      type: 'POST',
      url: 'index.php?/messages/add',
      dataType: 'html',
      data: { message: $('#message').val(), age: $('#age').val() },
      success: function(data){
        $("#content").load("index.php?/messages/view/");
      },
      error: function(){
        alert("An error has occurred. Please try again.");
      }
    });
    return false;
  });

   $("#content").load("index.php?/messages/view/");

});
[removed]

I'm new to this area and would like to think I'm making quick progress but need some assistance. Appreciate your time.


Messages In This Thread
JQuery & AJAX & IE Div Caching... - by El Forum - 05-29-2009, 10:47 PM
JQuery & AJAX & IE Div Caching... - by El Forum - 05-29-2009, 10:59 PM
JQuery & AJAX & IE Div Caching... - by El Forum - 05-29-2009, 11:09 PM
JQuery & AJAX & IE Div Caching... - by El Forum - 05-29-2009, 11:14 PM
JQuery & AJAX & IE Div Caching... - by El Forum - 05-29-2009, 11:40 PM
JQuery & AJAX & IE Div Caching... - by El Forum - 05-29-2009, 11:52 PM
JQuery & AJAX & IE Div Caching... - by El Forum - 05-30-2009, 12:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB