Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!news.teledata-fn.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="ISO-8859-1" Message-ID: <1895059.lkMUc99Mlk@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Fri, 10 Jan 2014 18:05:26 +0100 User-Agent: KNode/4.11.3 Content-Transfer-Encoding: 7Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. <2682810.tskAjyEyLv@PointedEars.de> <4863656.Y3eb4HivdN@PointedEars.de> MIME-Version: 1.0 Lines: 45 NNTP-Posting-Date: 10 Jan 2014 18:05:30 CET NNTP-Posting-Host: 97391a54.newsspool4.arcor-online.net X-Trace: DXC=X@ej:39H^lZV;Ef1`Jk54\4IUK> I know how to query a window's opener from the window but if the course >> can only make a call like >> >> var xhr = new XMLHttpRequest(); >> xhr.open('get', 'http://www.track.com/the/project.php?find=progress'); >> xhr.send(); >> >> how does it get info from the window opener? > > It cannot. Rethinking this, my answer is not wrong, but if the access policy is open for small allowances, there are possibilities (without claim of completeness): - The opener code can open the course window providing vital information in the course URI, provided the parameters used by the opener are not used by the course already. The course code can then process document.URL or window.location; - (Not recommended) The opener code can set the name of the course window to include vital information, and the course code can read window.name. Either of the former two approaches may create a security leak if the vital information includes privileged information. - If the opener document and the course document are within the same second-level domain, the opener code can set a cookie with that domain before opening the course window, and the course code can read it: - Likewise, the opener code can set local storage or session storage data before, after which the course code can read it. This should be preferred to cookies. In any case, compliant with Cookie laws, with the former two approaches the user may need to be informed that such information is being stored on their machine. -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.