Hi,

Thanks for the feedback !

I haven't been able to debug it to the detail, but referencing a window immediately 
returned by an open method doesn't seem reliable... I haven't been able yet to figure 
out what you can do,
and what you can't do :

win = open(...), immediately followed by
win.<method> can cause a script error, depending on conditions I haven't been able to 
put my finger on...
e.g. win.focus() doesn't always work...
e.g. win.onload=<function> sometimes throws an error...
Troubles often occur if the window is already open, trying to open it again has been 
documented as a way to retrieve the handle to that window... but consecutive methods 
applied to such a
window can fail... dunno which methods do or why they do it yet...

I tried the win.onload = <callback method to opener> and it was not reliable... don't 
know under which conditions it fails... the only reliable method is to hardwire the 
callback in the window
you are opening (already in the HTML embedded scripts). Such a window would contain an 
onLoad handler which accesses the opener to execute code in reponse :

[code in opened window :] opener.callback(<identifier>) in which <identifier> is most 
likely this.name, as it is the only identifier which can be matched against the 
identifier used to open the
window, remember the open method :
    open(<url>,<identifier>,<window features>)

The opener would have registered that <identifier> to a windowManager in advance, 
together with a Function object to be executed in callback (as in a hashtable). That 
callback can resize, move,
focus... the opened window in reponse to its onLoad event returning the right 
identifier.

So far, doing it that way keeps the errors away... not really ugly, perhaps even 
elegant in a way, but what an effort !!!

CU,
 Dann



I think, just as Eytan pointed out b.t.w., that the object you get a reference to is 
not immediately there

example :
ca
begin:vcard 
n:Martens;Danny
tel;cell:+32(0)478.544.003
tel;fax:+32(0)2.706.52.01
x-mozilla-html:FALSE
url:http://www.tomoton.com
org:Tomoton
adr:;;Geldenaaksebaan 185/2;Heverlee;;B-3001;Belgium
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Danny Martens
end:vcard

Reply via email to