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.

Content Upload<br />

The content upload feature lets a user upload content to the server. The<br />

server returns a response in the editor. For instance, the response could<br />

summarize the content that was uploaded to the server.<br />

An example of this feature would be a nurse who needs patient information.<br />

The nurse enters patient data, uploads it, and receives information back from<br />

the server about the patient without refreshing the page. The nurse could<br />

then correct information on the received data and submit it to the server.<br />

Content Upload, part of the Automatic Upload feature, works like Automatic<br />

Upload in that<br />

1. Content is uploaded in a form.<br />

2. The server retrieves the field value.<br />

3. The server responds to the client.<br />

NOTE The Content Upload feature is configured in the configuration data. So,<br />

unless you need to change something, the client scripting does not need to<br />

change the configuration for a client upload.<br />

Retrieving Content from <strong>eWebEditPro</strong><br />

The Content Upload Command<br />

To retrieve editor content, you can use the upload command or the<br />

GetContent method. Both use a standard set of content types to specify the<br />

kind of information to retrieve from the editor. As examples<br />

• client side JavaScript uses GetContent to retrieve the HTML header for<br />

processing<br />

• the content upload command sends the content as RTF to the server<br />

The rest of this chapter explains how to use the content upload feature<br />

through these subtopics:<br />

• ”The Content Upload Command” on page 500<br />

• ”The Receiving Page” on page 505<br />

• ”Content Types” on page 507<br />

• ”Content Setting API” on page 501<br />

The Content Upload’s command is cmdmfuuploadcontent. When this<br />

command is given to the editor (either through the menu bar or client<br />

scripting), the content is uploaded to the server. This content does not reach<br />

the client-side JavaScript or the form.<br />

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

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

Saved successfully!

Ooh no, something went wrong!