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.

JavaScript Objects<br />

NOTE Onblur, ondblclickelement, onexeccommand, and onfocus are events raised by<br />

the ActiveX control, not the parameters object. But you set them using the<br />

parameters object -- you cannot set them using the ActiveX control. As a result,<br />

they are documented as properties of the parameters object used to assign<br />

JavaScript that executes when the ActiveX control's event fires.<br />

Installation Popup Window Defaults<br />

Popup Window Defaults<br />

See “InstallPopup Object” on page 10.<br />

These defaults determine the attributes of the button that launches the popup<br />

window.<br />

Examples<br />

<br />

var strhref = "JavaScript:";<br />

if (<strong>eWebEditPro</strong>.isNetscape)<br />

{<br />

strhref += "<strong>eWebEditPro</strong>.edit(\"MyContent1\")";<br />

}<br />

<strong>eWebEditPro</strong>.parameters.buttonTag.start = "";<br />

<br />

See Also: “Popup Object” on page 11<br />

<strong>eWebEditPro</strong>Util JavaScript Object<br />

The <strong>eWebEditPro</strong>Util JavaScript object offers utility functions. A file, eweputil.js,<br />

offers helpful functions and properties by way of the <strong>eWebEditPro</strong>Util JavaScript<br />

object.<br />

You can use the <strong>eWebEditPro</strong>Util object in a Web page that includes<br />

ewebeditpro.js or eweputil.js.<br />

• Pages that display the editor must include ewebeditpro.js<br />

• Popup pages that do not display the editor but access it must include<br />

eweputil.js to use the <strong>eWebEditPro</strong>Util object<br />

To review a sample that uses <strong>eWebEditPro</strong>Util, see formelementinsert.htm,<br />

located in the <strong>eWebEditPro</strong> folder.<br />

For a page that does not display the editor, add the following include to create<br />

<strong>eWebEditPro</strong>Util.<br />

<br />

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

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

Saved successfully!

Ooh no, something went wrong!