Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #22545

Re: AJAX using local

Message-ID <4863656.Y3eb4HivdN@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2014-01-10 01:07 +0100
Subject Re: AJAX using local
Newsgroups comp.lang.javascript
References <7L6dnSGUUJE1hVLPnZ2dnUVZ_vydnZ2d@westnet.com.au> <2682810.tskAjyEyLv@PointedEars.de> <HoednRdin6yQrVLPnZ2dnUVZ_uOdnZ2d@westnet.com.au>

Show all headers | View raw


Andrew Poulos wrote:

> On 10/01/2014 9:17 AM, Thomas 'PointedEars' Lahn wrote:
>> Andrew Poulos wrote:
>>> There's a window that opens an elearning course.
>>            ^^^^^^
>>> In the opener there's a js object that's populated with info such as the
>>> user ID, course progress...
>>>
>>> The course is written by a 3rd party (meaning, I cannot edit the course)
>>> and uses a new "standard" that only allows for communication via AJAX.
>>>
>>> Is there a way to get the elearning course to get info from the opener's
>>                                                                  ^^^^^^
>>> js object rather than going to the server? It seems a waste to go to the
>>> server for info that is available locally.
>>
>> You have named the key words to do this already.
> 
> 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.

-- 
PointedEars

Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

AJAX using local Andrew Poulos <ap_prog@hotmail.com> - 2014-01-10 08:45 +1100
  Re: AJAX using local Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-09 23:17 +0100
    Re: AJAX using local Andrew Poulos <ap_prog@hotmail.com> - 2014-01-10 10:25 +1100
      Re: AJAX using local Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-10 01:07 +0100
        Re: AJAX using local Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-10 18:05 +0100
      Re: AJAX using local JJ <duh@nah.meh> - 2014-01-10 17:24 +0700

csiph-web