We hope you'll join us for our 4/23 webinar on using data tables to apply reference ranges and AE codes in OC4. For more information and to register, visit https://register.gotowebinar.com/register/2882170018956684555

About Cross-site messaging andControlledVocabularies

GerbenRienkGerbenRienk Posts: 808 ✭✭✭
RE: [Developers] About Cross-site messaging and Controlled Vocabularies
Hello Armando,

Maybe you already fixed this, but if not: there’s a working example of cross-domain messaging and getExternalValue on
http://www.trialdatasolutions.com/tds/howto/postmessage.jsp
Hope this helps,

Gerben Rienk


Van: [email protected] [mailto:[email protected]] Namens Bertuzzi, Armando [Nervianoms]
Verzonden: donderdag 14 april 2011 17:02
Aan: [email protected]
Onderwerp: [Developers] FW: About Cross-site messaging andControlledVocabularies

Tom,
I am attaching a minimal php page that displays the problem in our context. Sorry but it requires jQuery. It is triggered on the OpenClinica side by a CRF item of the getExternalValue type. Sender and receiver are on different hosts.
The page loads properly, without syntax errors. I can see the reference to the item, but window.opener in my page is Undefined, and so nothing arrives back to OpenClinica. I also attach a picture from the Firebug session.
Thanks a lot for the assistance,
Armando
Sent: Thursday, April 14, 2011 1:03 PM
To: [email protected]; [email protected]
Subject: Re: [Developers] About Cross-site messaging and ControlledVocabularies
Hi Armando,
You should not have issues with this as you are using postMessage() which allows for cross-domain messages. You could check the Javascript on your side and make sure there are no errors there, for example: http://stackoverflow.com/questions/3332532/how-can-i-do-cross-domain-postmessage
Also, you should have an 'item' variable passed through to your code. Can you make sure the item is sent in your url, i.e. http://url?item=mainForm.input1 ? Otherwise, you'll be sent back to the page, but no item will be updated.
Hope that helps, Tom
Tom Hickerson | Senior Tier-2 Engineer
Akaza Research, LLC
Email: [email protected]
Phone: 617-621-8585 | Fax: 617-621-0065
www.openclinica.com
Open Source Platform for Clinical Research
-----Original Message-----
Sent: Wed 4/13/2011 10:49
To: [email protected]
Subject: [Developers] About Cross-site messaging and Controlled Vocabularies
Hi all,
I am referring to the process described at: https://wiki.openclinica.com/doku.php?id=developerwiki:postmessage .
I am testing it, and I am finding troubles in passing back value to the opener page. I am using Firefox 3.6.x with Firebug. The cause of the problem is that the window.opener or self.opener property in the popup created by the window.open function is always "undefined".
Openclinica and the coding application are on different servers, so I am wondering if this has to do with limitations imposed by the Same Origin Policy.
Did somebody find the same problem? Do I need to implement something particular in the popup page to catch the opener information in a cross-site situation? Other than window.open, OpenClinica does not seem to send anything else for to the popup to receive.
Thanks a lot,
Armando
This message has been scanned for malware by Websense. www.websense.com

Click here to report this email as spam.
This discussion has been closed.