Welcome

Login to contribute. Register if you haven't yet.

Support Options

1. Search this site.
2. Make or vote for a Suggestion.
3. Post to Community Support.
3. Contact EditMe Support staff.

Stay Informed

Keep informed of product changes, tutorials and tips via EditMe's Blog and monthly newsletter.

SS Self-Removing Tag

Using the SS Self-Removing Tag

While you can put an "editme" attribute in any HTML or XML tag, sometimes you want to insert a tag just for the purpose of creating an attribute script. Rather than use a SPAN, DIV or other tag that will be left behind and possibly make your script fail XHTML validation, you can use the SS tag. The SS tag will be removed by the script parser after execution. Here's an example:

This code:

<p>This page is named <ss editme="text page.name"/>.</p>

Produces this output:

<p>This page is named AttributeScriptingSyntax.</p>

SS tags can also include tags. Here's an example of repeating a set of 2 table rows. If any tag other than SS were to be used here, it would produce invalid HTML. This code:

<table>
<ss editme="ss times n 3"><tr><td>A</td></tr><tr><td>B</td></tr></ss>
</table>

Produces this output:

<table>
<tr><td>A</td></tr><tr><td>B</td></tr>
<tr><td>A</td></tr><tr><td>B</td></tr>
<tr><td>A</td></tr><tr><td>B</td></tr>
</table>