I need to resize an image when I open a page. before ajax navigation, I used function jQuery(window) to say that I want to do my function resize when I get in my new page. But now with ajax navigationIi just load a part of my page so jQuery(window) returns nothing.
// start page KO PART
jQuery(window).load(function(){
redimensionnement();
});
// KO PART END
// resize window OK --
jQuery(window).resize(function(){
redimensionnement();
});
Do you have any idea to solve my problem?
Thanks a lot !
I have find the solution !
So, to resize my image when we enter in my image page, I test if it is load in my ajax loop like this :