M
Matej
Hi,
I am here working with browser-based application (quite complicated),
where I work on some plans in one window and then I need for every plan
open other window (HREF of which can be calculated from the current
HREF) to take a look at some data. There are hundreds of such plans so
I would like to be able to manipulate other-data window with keyboard.
So far I have created this with Greasemonkey:
(function() {
var ATags = document.getElementsByTagName("a");
var hrefArray = window.location.href.split("/");
hrefArray[hrefArray.length-1] = "gallery";
var imageHREF = hrefArray.join("/");
for (var i = 0; i < ATags.length; i++)
{
tempElem = ATags;
if (tempElem.getAttribute("href") == imageHREF) {
tempElem.setAttribute("accesskey","I");
tempElem.setAttribute("target","_blank");
}
};
})();
But I would love to be able to reuse that data window. I know that I
cannot control random other window with JavaScript, but could I somehow
create new window and to store its handle via GM_setValue for later
reuse? Did anybody see anything like this?
Thanks a lot,
Matej
I am here working with browser-based application (quite complicated),
where I work on some plans in one window and then I need for every plan
open other window (HREF of which can be calculated from the current
HREF) to take a look at some data. There are hundreds of such plans so
I would like to be able to manipulate other-data window with keyboard.
So far I have created this with Greasemonkey:
(function() {
var ATags = document.getElementsByTagName("a");
var hrefArray = window.location.href.split("/");
hrefArray[hrefArray.length-1] = "gallery";
var imageHREF = hrefArray.join("/");
for (var i = 0; i < ATags.length; i++)
{
tempElem = ATags;
if (tempElem.getAttribute("href") == imageHREF) {
tempElem.setAttribute("accesskey","I");
tempElem.setAttribute("target","_blank");
}
};
})();
But I would love to be able to reuse that data window. I know that I
cannot control random other window with JavaScript, but could I somehow
create new window and to store its handle via GM_setValue for later
reuse? Did anybody see anything like this?
Thanks a lot,
Matej