Archive for October, 2012

Javascript call parent window’s functions from child popup window

Tuesday, October 16th, 2012

It’s that simple:

Parent:

<script >function something(){ alert(‘here’); }</script >

Popup:

<script> window.opener.something(); </script >

http://www.w3schools.com/jsref/prop_win_opener.asp

Oracle RightNow Technologies display attachments in your view, use FileListDisplay & answers.fattach

Tuesday, October 9th, 2012

if you are using:
/development/views/answers/detail.php 

then you’re probably displaying the answer content with these tags:
<rn:field name=”answers.summary” highlight=”true”/>
<rn:field name=”answers.solution” highlight=”true”/>

which means that if you use a workspace that allows content teams to upload attachments, the attachments still won’t be visible on your site, until you add this to the detail.php view:
<rn:widget path=”output/FileListDisplay” name=”answers.fattach”/>

Then style things here:
assets/themes/standard/widgetCSS/FileListDisplay.css