#240 closed
Scriptish

How to open a PopUp window without ERROR? And how to to write to it?

Reported by Scriptish | September 18th, 2011 @ 09:52 PM

In order to add the opening of my own popup-window to my littel test-script I just tried:


// ==UserScript== // @id boerseffm_2 // @name borseffm_2 // @namespace test // @include http://www.boerse-frankfurt.de/* // ==/UserScript== // try this url: http://www.boerse-frankfurt.de/DE/index.aspx?pageID=1
var h, m, s, time;
var RgEx = /(\d+)\:(\d+)\:(\d+).*/;
var FRQ = 30; // every 30 sec
var T = -1; //the loop will be executed at first without initial latency
setInterval(function()
{ var clock = document.getElementById("clock"); T++; if ( (T%FRQ) == 0 && clock) {
RgEx.exec(clock.textContent);
h = RegExp.$1;
m = RegExp.$2;
s = RegExp.$3;
time = h + ":" + m + ":" + s;
PopUp();



} }, 1E3);
function PopUp()
{ window.open("about:blank",'Pop_Up','width=480,height=120'); }


Well - the window opens and theAddOn Console² 0.7 show immediately:  
ERROR: Component returned failure code: 0x80004005  
(NS_ERROR_FAILURE) [nsIStringBundle.GetStringFromName]
sourcefile: chrome://vrs/content/vrsOverlay.js  
Zeile: 70

Hmm, my fault, your fault ;), their fault???  
Can I do s.th.?

And does s.o. know how can I write to this pop-up window?  
Either 'blank' text or text with html-tags, e.g. using GET,  
but what should be the url??  
Finally I dont want write into it not only once, when it is created,  
but again and again.  
Any hint or link is welcomed :)  
Thanks and a nice weekend in advance,  
gooly

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket