No, you have misunderstood the question. Your answer is to call the changePage method after 2 seconds, but my question is when the changePage method call the given URL and if it took more then "X" mins to get a response from server, it throws timeout exception. The value of X cannot be defined in changePage method.
This method internally call $.ajax method which supports custom timeout interval. I am looking for the method changePaget to accept the custom timeout interval and pass the custome timeout interval in to $.ajax method.
Thanks
Shan