Hi!
I've some new info:
1.
Would be useful if wAjaxBrowserHistory will get method "ClearHashHistory".
2.
I think, this JS code will better work in AddHash method:
delphi code
procedure TIWCGJQCustomAjaxBrowserHistory.AddHash(const AHash: string);
var
js: string;
begin
//...
//js:= Format('window.location.hash = "%s";',[js]);
js := Format('if (window.location.hash != "#%s") {window.location.hash = "%s";} else {$(window).trigger("hashchange");}',[js,js]);
//...
end;
With this code i can be sure, that wAjaxBrowserHistory.AddHash will be processed as expected.
With default code, sometimes i got that wAjaxBrowserHistory.AddHash does nothing, when url hash and new hash are the same.
For example, when user not authorized, i don't open requested frame, but url contains hash. Then, when user log in, wAjaxBrowserHistory.AddHash does nothing.
George wrote:When PageContext.AddToInitProc is implemented, in some cases i get double "hashchange" event.
I'll provide more info later.
in process.. so far all ok.