O
optimistx
How to transfer data between two windows without server programming ?
It seems to be easy to pile numerous div:s on one page thus not needing to
open new windows. All the 'quasi windows' can be accessed easily with any
script.
If we open a new window with javascript code, we get the handle to the new
window and can communicate with its javascript contents easily (the same
origin policy, all are 'my pages', the same server).
If the user clicks the link and opens another window, my javascript program
does not get the window handle. Or is there a simple way?
One could send data by appending to the url, after ?-mark, but there is a
limitation of length. I might need to send some kilobytes. Sending by
post -request might be simple enough, once (the original page must not alter
its state).
Constructing frames is also a way, but when they are necessary for something
else, at least for the time being, so I would like to avoid them. Cookies?
No, they are in use for something else.
Asking the users to adjust parameters for their pop up blockers is too
complicated.
Am I really forgetting a simple idea to solve this? Something to be done at
the same time as the user clicks the link with <a href="newpage.htm"
target="_blank">newpage</a> ? The user clicks the link and the two windows
should be able to communicate (at least the originally open window should be
able to send say 10 kb of data to the new window).
Sorry if this question is too easy
It seems to be easy to pile numerous div:s on one page thus not needing to
open new windows. All the 'quasi windows' can be accessed easily with any
script.
If we open a new window with javascript code, we get the handle to the new
window and can communicate with its javascript contents easily (the same
origin policy, all are 'my pages', the same server).
If the user clicks the link and opens another window, my javascript program
does not get the window handle. Or is there a simple way?
One could send data by appending to the url, after ?-mark, but there is a
limitation of length. I might need to send some kilobytes. Sending by
post -request might be simple enough, once (the original page must not alter
its state).
Constructing frames is also a way, but when they are necessary for something
else, at least for the time being, so I would like to avoid them. Cookies?
No, they are in use for something else.
Asking the users to adjust parameters for their pop up blockers is too
complicated.
Am I really forgetting a simple idea to solve this? Something to be done at
the same time as the user clicks the link with <a href="newpage.htm"
target="_blank">newpage</a> ? The user clicks the link and the two windows
should be able to communicate (at least the originally open window should be
able to send say 10 kb of data to the new window).
Sorry if this question is too easy