15.08.2013 Views

Ektron® eWebEditPro Developer's Reference Guide

Ektron® eWebEditPro Developer's Reference Guide

Ektron® eWebEditPro Developer's Reference Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

This information could be used to alert the user to save and close the popup<br />

window prior to submitting.<br />

Example<br />

function countOpenPopups()<br />

{<br />

var iCount = 0;<br />

for (var i = 0; i < <strong>eWebEditPro</strong>.popups.length; i++)<br />

{<br />

if (<strong>eWebEditPro</strong>.popups[i].isOpen())<br />

{<br />

iCount++;<br />

}<br />

}<br />

return iCount;<br />

}<br />

Object: ”Popup Object”<br />

Method: isOpenerAvailable<br />

Method: IsPresent<br />

Description: Valid for popup pages, this method determines if the page that<br />

opened the popup is still open.<br />

Example<br />

if (<strong>eWebEditPro</strong>Util.isOpenerAvailable())<br />

{<br />

var objInstance = <strong>eWebEditPro</strong>Util.getOpenerInstance();<br />

var oEditor = objInstance.editor;<br />

var sSelectedHTML = oEditor.getSelectedHTML();<br />

:<br />

}<br />

Object: ”<strong>eWebEditPro</strong>Util Object”<br />

Description: This method returns true if WebImageFX is installed properly on the<br />

client's system.<br />

If this method returns false, WebImageFX is not installed or is not installed<br />

properly. Ektron suggests that a false return should disable client scripting<br />

functionality that interacts with WebImageFX.<br />

NOTE If the feature exists on a client but has not been installed properly, this method<br />

returns false.<br />

Object: ”Image Editor Object”<br />

Parameters<br />

None<br />

<strong>Ektron®</strong> <strong>eWebEditPro</strong> Developer’s <strong>Reference</strong> <strong>Guide</strong>, Release 5.1, Revision 1 78

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!