ajax question

Discussion in 'PHP' started by bartolay13, Sep 8, 2008.

  1. #1
    hi there,

    i have a problem on ie, it stores the default page of ajax.. and my ajax page is dynamic.. and i want dynamically change the values inside the ajax container.

    no problem in ff but in ie,, what will be my headers for this one?
     
    bartolay13, Sep 8, 2008 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    Forget the headers. Do it this way:
    
    var url = 'ajax.php?foo=bar&r=' + Math.floor(Math.random() * 99999);
    
    Code (javascript):
    ... this way it'll send a new request every time, regardless of the headers and cache options.
     
    nico_swd, Sep 8, 2008 IP
  3. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #3
    thanks bro,
    works perfectly.

    +1 to you.
     
    bartolay13, Sep 8, 2008 IP