Saving window position and content

I am wondering if I can some how get the b:window position, size, and the content of the window (e.g. the href value or HTML text)?

Thanks.

Saving window position and content

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?

Saving window position and content

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?

Thanks.
Henry

Saving window position and content

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.

Saving window position and content

Hi 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

Hi 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

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.

Javascript workaround

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:

document.getElementById('windowpos').style.posLeft
document.getElementById('windowpos').style.posTop
document.getElementById('windowpos').style.width
document.getElementById('windowpos').style.height

Where windowpos is the id of your layer.