Enable Editing Without the
Toolbar
You can let your users edit your pages without installing the
toolbar (just like the demo page). To enable it all you need to do
is:
- Set the CheckForToolbar node of the XML settings file to
"true". Set to "false" to disable this option.
- Place this code block at the top of the page:
<script
language="javascript">
t=setTimeout("ToolbarCheck();",2000,"javascript")
</script>
<script id="NoToolbarScript"
src="/includes/NoToolbar.js"></script>
- Place the provided NoToolbar.js file in the appropriate
directory.
Using Standard HTML Form
Elements
You can use SELECT tags and INPUT tags of any
type to pass content to the Target page if you wish. You simply
have to set the id attribute of these tags to your editID value.
TEXTAREA tags cannot be used.
example:
<INPUT name="example" type="checkbox"
ID="editSpace" value="1" CHECKED>
The supplied "Saver.asp" page will not save this data, however
the value of this input tag will be submitted with its
name along with the rest of the content. If you
wished to use this information you would have to write
your own script to do so. This content will not be submitted
by users who are editing without the toolbar (see above).
Using the Toolbar to Edit Content Within a
Frameset
Place a metatag on the page that contains the frameset:
<META ID="ATeditFrame"
VALUE="contentFrame">
Where "contentFrame" is the name of the frame that contains
the content you want to edit. Set up the editable page in the
standard way as described here. The
frameset must be completely within one domain for this to
work, like this:
<HTML>
<HEAD>
<META ID="ATeditFrame"
VALUE="contentFrame">
<TITLE>Frame
Example</TITLE>
</HEAD>
<FRAMESET rows="20%,80%">
<FRAME SRC="top.html" name="topFrame">
<FRAME SRC="demo.asp" name="contentFrame">
</FRAMESET>
</HTML>
Adding Custom Functionality to
the Toolbar
You can add as many entries as you want to the
dropdown button
by adding this node to the XML settings file inside the
<EditSave> node:
<CustomOptions>
<CustomOption>
<OptionLocation>MyPage.asp?do=Add</OptionLocation>
<OptionName>My Name</OptionName>
<Popup>True</Popup>
<ShowToolbars>True</ShowToolbars>
<HSize>500</HSize>
<VSize>500</VSize>
</CustomOption>
</CustomOptions>
You can add as many <CustomOption> nodes as you wish. When
the user selects these options they will be taken to a popup page
specified in OptionLocation. If Popup is false then the current
browser window will navigate to the specified location.
Using a custom Hyperlink form
with the Toolbar
You can use your own Hyperlink box with the Toolbar by changing
the <UsePopup> node of the
<Links> node
to "True" in the XML settings file. You can also set the
URL and size of the pop up box. An example Javascript based
Links.htm page is included with the SDK that should get you
started.