Hi Nathan,
Is there a way to tell on the server side if egw.open() will be
available on the client?
I’ve looked into $GLOBALS[‘egw_info’][‘flags’][‘js_link_registry’],
but it’s only set for the main window, not popups. I’m trying to
build appropriate links in a popup, and use javascript:egw.open() when
available, and a regular link if not.
Just checked again, it is always available (as far as I tested).
Eg. adding a new contact, the popup includes phpgwapi/js/jsapi/egw.js
if (window.opener && typeof window.opener.egw == ‘object’)
{
egw = window.opener.egw;
}
else if (window.top && typeof window.top.egw == ‘object’)
{
egw = window.top.egw;
}
else
{
egw = {
So for popups egw is just a reverence to the openers egw object.
For framesets, eg. jdots template, it’s a reference to the top window’s
egw object.
In the javascript console of the popup, I can run eg.
egw.open('calendar',0)
which opens a new calendar entry.
Ralf
Ralf Becker
Director Software Development
Stylite AG
Morschheimer Strasse 15 | Tel. +49 6352 70629 0
D-67292 Kirchheimbolanden | Fax. +49 6352 70629 30
Email: rb@stylite.de
www.stylite.de | www.egroupware.org
Managing Directors: Andre Keller | Ralf Becker | Gudrun Mueller
Chairman of the supervisory board: Prof. Dr. Birger Leon Kropshofer
Commerzbank BLZ 55040022 | Account 218111300
IBAN DE33 5504 0022 0218 1113 00 | BIC COBADEFFXXX
VAT DE214280951 | Registered HRB 31158 Kaiserslautern Germany
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers