RE: [Developers] About Cross-site messaging and Controlled Vocabularies
Maybe you already fixed this, but if not: there’s a working example of cross-domain messaging and getExternalValue onhttp://www.trialdatasolutions.com/tds/howto/postmessage.jsp
Hope this helps,
Van: [email protected]
] Namens Bertuzzi, Armando [Nervianoms]
Verzonden: donderdag 14 april 2011 17:02
Aan: [email protected]
Onderwerp: [Developers] FW: About Cross-site messaging andControlledVocabularies
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,
Sent: Thursday, April 14, 2011 1:03 PM
To: [email protected]
; [email protected]
Subject: Re: [Developers] About Cross-site messaging and ControlledVocabularies
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
Open Source Platform for Clinical Research
Sent: Wed 4/13/2011 10:49
To: [email protected]
Subject: [Developers] About Cross-site messaging and Controlled Vocabularies
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,
This message has been scanned for malware by Websense. www.websense.com
Click here to report this email as spam.