Printer friendly version GotoAnchor Javascript function
by Gerald Zukrigl

MyTreeView jumps to top after autopostback.
I've inserted the MyTreeView-Control into a form which is inside a frame.
When I enlarge the control by expanding the nodes (over a ondemandload) it jumps to the wrong position of the page or it scrolls to the wrong node depending on the browser.

As I'm having a broad hierarchy to display this is causing troubles.

I've done a short look into the html source at the client and found a function GotoAnchor()

Unfortunatly this function failes to work properly with InternetExplorer and mozilla:

Internet Explorer: It doesn't jump really.
Mozilla: When expanding a node the treeview jumps to a scrolling position, so that the first child node of the expanded node is displayed topmost in the scrolling pane.

Did I anything wrong? Any ideas? Thank you for help.

Write reply   Tip a friend  Go back