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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Manipulating Media File Methods and Properties<br />

• The HTML source page is published in a different directory level from the<br />

directory in which it is edited.<br />

• It is acceptable to have images not appear when a page is being edited.<br />

• You know where the HTML source page is published.<br />

If any condition is not true, you should not use the given resolution type. Instead,<br />

use the local or full resolution type.<br />

Programmatically Accessing Media File Properties<br />

The Media File Object provides access to image properties relating to the file and<br />

the upload process. Values set for these properties affect the operation of the<br />

editor.<br />

”Media File Object” on page 19 lists the properties. You can set default values for<br />

most properties in the configuration data.<br />

This section provides the following topics, which explain how to programmatically<br />

access the image properties under various circumstances.<br />

• Accessing the Media File Object<br />

• Using Netscape to Access Image Properties<br />

• The Entry Point for Using External Scripts<br />

• Setting External Page Parameters<br />

• Changing the Transfer Method on the Fly<br />

• Specifying an Image to Insert<br />

• Modifying the Upload Directory<br />

Accessing the Media File Object<br />

You gain access to the media file object properties programmatically via the<br />

MediaFile method in the <strong>eWebEditPro</strong> control.<br />

Function getValidExtensions(seditorname)<br />

{<br />

var objMedia = top.opener.<strong>eWebEditPro</strong>.instances[sEditorName].editor.MediaFile();<br />

return(objMedia.getPropertyString("ValidExtensions"));<br />

}<br />

See Also: “Appendix A: Naming the <strong>eWebEditPro</strong> Editor” on page 576; ”Media<br />

File Object” on page 19<br />

Using Netscape to Access Image Properties<br />

Within Netscape, the Esker ActiveX plug-in converts the ActiveX control to a plugin<br />

that Netscape can interpret. As a result, you cannot access Media File Object<br />

image properties directly. Instead, use the getProperty and setProperty<br />

methods listed below.<br />

setProperty(strName, strValue)<br />

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

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

Saved successfully!

Ooh no, something went wrong!