The b:window position and size can only be accessed using javascript (we're working on xpath access), but the b:window content can be completely updated and requested using BXML. This works the same as for the whole of the Backbase engine, so I'm probably missing the point behind your question. Can you tell a little bit more to what you actually want to achieve?
Say I have a an application similar to the sample Google search page (http://www.backbase.com/bbgoogle/). I have rearranged the windows in a certain way and I want to persist this arrangement so that the next time I come back to the page, the window positions are not reset. To do this I'll need to capture the window's position and size so the the presentation engine knows where to put the window. Is my intention more clear now?
I have the exact same question. I would love to a have an example of how the current DOM tree of the page can be sent back to the server. This allows the application to save the exact state of the page for re-display or troubleshooting.
Retrieving the entire DOM tree of the browser will be a bit difficult. It is certainly not something that Backbase supports, because it is for a very specific task…
However, maybe my answer to Henry’s question is good enough to help you out.
If it doesn’t, please let us know if you need further help.
I'm looking for a way to get the xy coordinates for a b:window as well as its size so that the users of the interface can layout the page they want to and then save it so that it always loads like this. All I need is the way to get the coordinates as the saving part's easy.
I'll answer my own question if anyone else is interested... To get the x y positions as well as width and height of an element you can use the following:
Saving window position and content
25 August, 2005 - 09:28 — AnonymousThe b:window position and size can only be accessed using javascript (we're working on xpath access), but the b:window content can be completely updated and requested using BXML. This works the same as for the whole of the Backbase engine, so I'm probably missing the point behind your question. Can you tell a little bit more to what you actually want to achieve?
Saving window position and content
26 August, 2005 - 02:31 — AnonymousSay I have a an application similar to the sample Google search page (http://www.backbase.com/bbgoogle/). I have rearranged the windows in a certain way and I want to persist this arrangement so that the next time I come back to the page, the window positions are not reset. To do this I'll need to capture the window's position and size so the the presentation engine knows where to put the window. Is my intention more clear now?
Thanks.
Henry
Saving window position and content
11 November, 2005 - 22:52 — AnonymousI have the exact same question. I would love to a have an example of how the current DOM tree of the page can be sent back to the server. This allows the application to save the exact state of the page for re-display or troubleshooting.
Saving window position and content
14 November, 2005 - 19:39 — AnonymousHi Todd,
Retrieving the entire DOM tree of the browser will be a bit difficult. It is certainly not something that Backbase supports, because it is for a very specific task…
However, maybe my answer to Henry’s question is good enough to help you out.
If it doesn’t, please let us know if you need further help.
~Grauw
Saving window position and content
14 November, 2005 - 19:41 — AnonymousHi Henry,
Please take a look at the following thread:
http://www.backbase.com/#forum/messageThread.html%3Fforum=2&thread=283
I hope that answers your question.
~Grauw
Same here
29 May, 2008 - 10:08 — JbuzzerI'm looking for a way to get the xy coordinates for a b:window as well as its size so that the users of the interface can layout the page they want to and then save it so that it always loads like this. All I need is the way to get the coordinates as the saving part's easy.
Javascript workaround
29 May, 2008 - 10:23 — JbuzzerI'll answer my own question if anyone else is interested... To get the x y positions as well as width and height of an element you can use the following:
document.getElementById('windowpos').style.posTop
document.getElementById('windowpos').style.width
document.getElementById('windowpos').style.height
Where windowpos is the id of your layer.