Grid

Hi,

With the prototypejs’s ajax request will do this
in the response i send
window.location.href = ‘/session/new’;

This will refresh the page.

But if i do the same thing with the  dhtmlx grid’s ajax request it won’t refresh the page.

Can you suggest me how to tackle this problem?


If you mean response to the
grid.load
command - it will be processed by the grid and will not be evaluated as normal script.

You can use ability of the grid to execute commands from xml

grid.custom_method=function(location){
window.location.href=location;
}


and in xml response



/session/new