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: popup<br />

Description: Lets you pass four parameters to the popup Web page (specified in<br />

popupUrl property).<br />

• url (see “Property: url” on page 135)<br />

• windowName (see “Property: windowName” on page 136)<br />

• windowFeatures (see “Property: windowFeatures” on page 135)<br />

• query (see “Property: query” on page 135)<br />

By default, the popupUrl page is a static HTML page, but it could be a dynamically<br />

generated page. In either case, you may want to pass additional information to the<br />

popup page. For example, you may want to display the number of times the<br />

content has been edited, the title of the content, or anything else.<br />

Here is an example that passes a title and instructions relevant to the content<br />

being edited.<br />

On the page with the popup button:<br />

<br />

var sTitle = "Summary Description";<br />

var sInstr = "Please enter a paragraph summarizing the page.";<br />

with (<strong>eWebEditPro</strong>.parameters.popup)<br />

{<br />

url = "cif_t0007popup.htm";<br />

windowName = "";<br />

windowFeatures = "location,scrollbars,resizable";<br />

query ="title=" + escape(sTitle) + "&instr=" +escape(sInstr);<br />

...<br />

<strong>eWebEditPro</strong>.createButton(...);<br />

<br />

NOTE The JavaScript escape() function ensures the text is saved to pass in a URL.<br />

For example, it changes all space characters to %20. The unescape() function<br />

restores the text.<br />

On the popup page:<br />

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

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

Saved successfully!

Ooh no, something went wrong!