Turns out this was actually a problem with a Border component and a custom shell delegate - the Body component was not making it through properly - all working now!

J

On 29-Jan-07, at 3:22 PM, Julian Wood wrote:

I have a div that is updated in response to an EventListener. This is all fine.

I just added a DirectLink which uses a PopupLinkRenderer in that div. All is still good.

When you click that link, I get a "popup_window not defined" error in javascript.

I can see that the correct script is passed in the AJAX response:

<ajax-response><response id="media" type="element">
<div class="section">
    <span id="For_59">
            <div id="mediaobject">
                <span>
                     ....
<a id="popupFullMediaViewer" href="javascript:popup_window();">+</a>
                </span>
            </div>
    </span>
</div>
</response>
<response id="bodyscript" type="script"><script>
//<![CDATA[
function popup_window()
{
var newWindow = window.open('/medvr/app? component=media.popupFullMediaViewer&page=ViewModule&service=direct&se ssion=T&sp=12', 'MedVR Media Viewer', 'top=100,left=100,width=480,height=480,scrollbars=yes,resizable=no');
  newWindow.focus();
}
//]]>
</script></response></ajax-response>

but is it not made available to my page?

Am I missing something?

Tried with 4.1.2-SNAPSHOT and 4.1.1.

Thanks.

J

--
Julian Wood <[EMAIL PROTECTED]>

Software Engineer
Teaching & Learning Centre
University of Calgary

http://tlc.ucalgary.ca



--
Julian Wood <[EMAIL PROTECTED]>

Software Engineer
Teaching & Learning Centre
University of Calgary

http://tlc.ucalgary.ca


Reply via email to