Hi guys,
I used to have a custom links using treeview.
I am using something like this
to get the position.
How do I do this with the new editor?
It is very difficult to find all the client api functions available in rad editor. It would be great if I can find all the client api function related to editor in one place and can see the example by clicking them. It is very difficult to get the function that I need in online documentation!
Cheers,
Bardia
I used to have a custom links using treeview.
I am using something like this
| var toolIcon = oTool.GetIcon(); |
| treeDiv.style.top = (GetY(toolIcon) + 25) + "px"; |
| treeDiv.style.left = (GetX(toolIcon) + 1) + "px"; |
| function GetX(obj) |
| { |
| var curleft = 0; |
| if (obj.offsetParent) |
| { |
| while (obj.offsetParent) |
| { |
| curleft += obj.offsetLeft; |
| objobj = obj.offsetParent; |
| } |
| } |
| else if (obj.x) |
| { |
| curleft += obj.x; |
| } |
| return curleft; |
| } |
| function GetY(obj) |
| { |
| var curtop = 0; |
| if (obj.offsetParent) |
| { |
| while (obj.offsetParent) |
| { |
| curtop += obj.offsetTop; |
| objobj = obj.offsetParent; |
| } |
| } |
| else if (obj.y) |
| { |
| curtop += obj.y; |
| } |
| return curtop; |
| } |
to get the position.
How do I do this with the new editor?
It is very difficult to find all the client api functions available in rad editor. It would be great if I can find all the client api function related to editor in one place and can see the example by clicking them. It is very difficult to get the function that I need in online documentation!
Cheers,
Bardia
