laurent

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • in reply to: reloadGrid + cache problem (IE,Mozilla) #81911
    laurent
    Participant

    Tony,

    you’re right, i forgot one of the “a” of AJAX : asynchrone…
    but instead of using synchrone mode (freezing web browser), i’m using the success parameter/function of jQuery.ajax().

    And now grid is refreshed when i’m sure previous action has be done.

    Many thanks for your response.

    Laurent

    in reply to: reloadGrid + cache problem (IE,Mozilla) #81909
    laurent
    Participant

    Hi Tony,

    Sorry but the problem still the same with the last version of your plugin.
    The _nd parameter is now changing on each ajax request but no effect…

    Exemple of my script :


    jQuery(#element).jqGrid({
    // grid definition, url, ...
    })

    function action(){
    id = jQuery("#element").getSelectedRow();
    jQuery.get(); // ajax call to my server (update data), no return data;
    jQuery("#element").trigger("reloadGrid"); // refresh grid after ajax call
    }

    I’m using XML for my grid populated by a MySQL database, it’s based on your example…I don’t know what i’m missing…

    It’s strange because, when i use this script for search in grid (like your example), i do not have this kind of problem, the data in the grid are updated.

    Thanks for you time

    laurent

    in reply to: reloadGrid + cache problem (IE,Mozilla) #81907
    laurent
    Participant

    Hi Tony,

    Yes i forgot to say in my message that to each request, i’ve a had 2 parameters to prevent cache as you present them in your examples :

    – q = id of the request unique
    – nd = new date as mentionned

    Even with this 2 parameters, sometimes the cache is not refreshed.

    I’ve notice with logs that when you use trigger(‘reloadGrid’), the generated requested has exactly the sames values as first grid load. Especially with new date parameter.

    1st request :
    http://localhost/index.php?q=1&nd=1196094381437&page=1&rows=10&sidx=nom&sord=asc

    2nd request (after doing trigger(‘reloadGrid’)) :
    http://localhost/index.php?q=1&nd=1196094381437&page=1&rows=10&sidx=nom&sord=asc

    Seems strange…like new date is not updated before calling populate (line 800) or during ajax call (line 476). Pager options are updated…

    Hope this help

    regards

    laurent

Viewing 3 replies - 1 through 3 (of 3 total)

Stay connected with us in your favorite flavor!