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.

Property Name Type Description<br />

JavaScript Example<br />

Content Upload<br />

GetContentType String Specifies the type of content to post to the server when<br />

content is uploaded through the internal Content Upload<br />

mechanism. To see a list of valid values, go to ”Content<br />

Type Categories” on page 507.<br />

See Also: ”How Content Type is Determined” on page 508<br />

Below is a JavaScript example of using the Automatic Upload Object Interface.<br />

function UploadEditorContent(sEditorName, sTitle, sDescription)<br />

{<br />

var objAutoUpload;<br />

objAutoUpload = <strong>eWebEditPro</strong>.instances[sEditorName].editor.MediaFile().AutomaticUpload();<br />

objAutoUpload.ContentTitle = sTitle;<br />

objAutoUpload.ContentDescription = sDescription;<br />

<strong>eWebEditPro</strong>.instances[sEditorName].editor.ExecCommand("cmdmfuuploadcontent", _<br />

"whole", 0);<br />

}<br />

Fields in the Posted Form<br />

This section describes the fields used in the posted content upload form. The<br />

server receives the form when the content is uploaded.<br />

Field Description<br />

actiontyp The command of what posting this is. (Notice the<br />

missing 'e' in the name.)<br />

For content upload, the value is uploadcontent.<br />

content_description The description of the content.<br />

A content management site could put information (such<br />

as an ID) about the uploaded document into this field<br />

and then parse the information.<br />

content_size The size of the content in characters<br />

content_text The actual DHTML or XML content posted to the server.<br />

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

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

Saved successfully!

Ooh no, something went wrong!