fixed the resizable text area with IE problem fixed the ad space with IE problem merged the 7.2.0 and 7.1.4 change logs
465 lines
11 KiB
HTML
465 lines
11 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
|
|
<!--NewPage-->
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>
|
|
YAHOO.ext.DomHelper.Template
|
|
</TITLE>
|
|
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
|
|
</HEAD>
|
|
<SCRIPT>
|
|
function asd()
|
|
{
|
|
parent.document.title="YAHOO.ext.DomHelper.Template";
|
|
}
|
|
</SCRIPT>
|
|
<BODY BGCOLOR="white" onload="asd();" style="margin:15px;">
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<H2>Class YAHOO.ext.DomHelper.Template</H2>
|
|
<PRE>Object
|
|
|
|
|
+--<b>YAHOO.ext.DomHelper.Template</b>
|
|
</PRE>
|
|
|
|
|
|
<HR>
|
|
<DL>
|
|
<!-- Class definition -->
|
|
<DT>class
|
|
<B>YAHOO.ext.DomHelper.Template</B>
|
|
|
|
|
|
</DL>
|
|
|
|
<P>
|
|
<BR/>Represents an HTML fragment template
|
|
<BR/><I>Defined in <a href='overview-summary-DomHelper.js.html'>DomHelper.js</a></I><BR/><BR/>
|
|
</P>
|
|
|
|
<HR>
|
|
|
|
<!-- ======== NESTED CLASS SUMMARY ======== -->
|
|
|
|
<!-- ======== END NESTED CLASS SUMMARY ======== -->
|
|
|
|
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
|
|
|
|
|
|
|
|
|
<!-- =========== END FIELD SUMMARY =========== -->
|
|
|
|
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
|
|
<A NAME="constructor_summary"><!-- --></A>
|
|
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TD COLSPAN="2" class="title-cell">
|
|
Constructor Summary
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD>
|
|
<CODE>
|
|
<B>
|
|
<A HREF="YAHOO.ext.DomHelper.Template.html#YAHOO.ext.DomHelper.Template()">YAHOO.ext.DomHelper.Template</A>
|
|
</B>
|
|
(<String> html)
|
|
</CODE>
|
|
<BR>
|
|
|
|
|
|
</TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<!-- ======== END CONSTRUCTOR SUMMARY ======== -->
|
|
|
|
|
|
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
|
|
<A NAME="method_summary"><!-- --></A>
|
|
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TD COLSPAN="2" class="title-cell">
|
|
<span style="float:left">Method Summary</span>
|
|
<span style="float:right;font-weight:normal;font-size:8pt;">
|
|
<i>* Parameter types in italic indicate optional parameters</i>
|
|
</span>
|
|
</TD>
|
|
</TR>
|
|
|
|
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
|
|
<FONT SIZE="-1">
|
|
<CODE> HTMLElement</CODE>
|
|
</FONT>
|
|
</TD>
|
|
<TD>
|
|
<CODE>
|
|
<B>
|
|
<A HREF="#append">append</A></B>(<HTMLElement> el, <Object> values)
|
|
</CODE>
|
|
<BR>
|
|
|
|
Applies the supplied values to the template and append the new node(s) to el
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
|
|
<FONT SIZE="-1">
|
|
<CODE> String</CODE>
|
|
</FONT>
|
|
</TD>
|
|
<TD>
|
|
<CODE>
|
|
<B>
|
|
<A HREF="#applyTemplate">applyTemplate</A></B>(<Object> values)
|
|
</CODE>
|
|
<BR>
|
|
|
|
Returns an HTML fragment of this template with the specified values applied
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
|
|
<FONT SIZE="-1">
|
|
<CODE> void</CODE>
|
|
</FONT>
|
|
</TD>
|
|
<TD>
|
|
<CODE>
|
|
<B>
|
|
<A HREF="#compile">compile</A></B>()
|
|
</CODE>
|
|
<BR>
|
|
|
|
Compiles the template into an internal function, eliminating the RegEx overhead
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
|
|
<FONT SIZE="-1">
|
|
<CODE> HTMLElement</CODE>
|
|
</FONT>
|
|
</TD>
|
|
<TD>
|
|
<CODE>
|
|
<B>
|
|
<A HREF="#insertAfter">insertAfter</A></B>(<HTMLElement> el, <Object> values)
|
|
</CODE>
|
|
<BR>
|
|
|
|
Applies the supplied values to the template and inserts the new node(s) after el
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
|
|
<FONT SIZE="-1">
|
|
<CODE> HTMLElement</CODE>
|
|
</FONT>
|
|
</TD>
|
|
<TD>
|
|
<CODE>
|
|
<B>
|
|
<A HREF="#insertBefore">insertBefore</A></B>(<HTMLElement> el, <Object> values)
|
|
</CODE>
|
|
<BR>
|
|
|
|
Applies the supplied values to the template and inserts the new node(s) before el
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%">
|
|
<FONT SIZE="-1">
|
|
<CODE> HTMLElement</CODE>
|
|
</FONT>
|
|
</TD>
|
|
<TD>
|
|
<CODE>
|
|
<B>
|
|
<A HREF="#overwrite">overwrite</A></B>(<HTMLElement> el, <Object> values)
|
|
</CODE>
|
|
<BR>
|
|
|
|
Applies the supplied values to the template and overwrites the content of el with the new node(s)
|
|
</TD>
|
|
</TR>
|
|
|
|
|
|
</TABLE>
|
|
|
|
|
|
|
|
<P>
|
|
<!-- ========== END METHOD SUMMARY =========== -->
|
|
|
|
|
|
<!-- ============ FIELD DETAIL START =========== -->
|
|
|
|
|
|
<!-- ============ FIELD DETAIL END =========== -->
|
|
|
|
<!-- ========= CONSTRUCTOR DETAIL START ======== -->
|
|
|
|
<A NAME="constructor_detail"><!-- --></A>
|
|
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TD COLSPAN="1" class="title-cell">
|
|
Constructor Detail
|
|
</TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="YAHOO.ext.DomHelper.Template()"><!-- --></A><H3>
|
|
YAHOO.ext.DomHelper.Template</H3>
|
|
<PRE><B>YAHOO.ext.DomHelper.Template</B>(<String> html)</PRE>
|
|
|
|
|
|
|
|
|
|
<UL>
|
|
<B>Parameters:</B>
|
|
|
|
<UL><CODE>html</CODE> - The HTML fragment
|
|
</UL>
|
|
|
|
|
|
</UL>
|
|
|
|
|
|
<!-- Constructor return value(s) -->
|
|
|
|
<!-- End constructor return value(s) -->
|
|
|
|
<!-- ADDITIONAL ATTRIBUTES -->
|
|
|
|
<HR/>
|
|
<!-- END ADDITIONAL ATTRIBUTES -->
|
|
|
|
<!-- ========= CONSTRUCTOR DETAIL END ======== -->
|
|
|
|
|
|
<!-- ============ METHOD DETAIL START ========== -->
|
|
|
|
<A NAME="method_detail"><!-- --></A>
|
|
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TD COLSPAN="1" class="title-cell">
|
|
Method Detail
|
|
</TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<!-- One single method detail entry -->
|
|
|
|
<A NAME="append"><!-- --></A>
|
|
<H3>append</H3>
|
|
<PRE>HTMLElement <B>append</B>(<HTMLElement> el, <Object> values)</PRE>
|
|
|
|
<UL>Applies the supplied values to the template and append the new node(s) to el</UL>
|
|
|
|
|
|
<!-- METHOD PARAMETERS START -->
|
|
|
|
<UL>
|
|
<B>Parameters:</B>
|
|
|
|
<UL><CODE>el</CODE> - The context element
|
|
</UL>
|
|
|
|
<UL><CODE>values</CODE> - The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {YAHOO.ext.DomHelper.Template.prototype.foo = 'bar';})
|
|
</UL>
|
|
|
|
</UL>
|
|
|
|
<!-- METHOD PARAMETERS END -->
|
|
|
|
|
|
<UL>
|
|
<B>Returns:</B>
|
|
<UL>
|
|
The new node
|
|
</UL>
|
|
</UL>
|
|
|
|
|
|
<!-- ADDITIONAL ATTRIBUTES START -->
|
|
|
|
<!-- ADDITIONAL ATTRIBUTES END -->
|
|
<HR>
|
|
|
|
<A NAME="applyTemplate"><!-- --></A>
|
|
<H3>applyTemplate</H3>
|
|
<PRE>String <B>applyTemplate</B>(<Object> values)</PRE>
|
|
|
|
<UL>Returns an HTML fragment of this template with the specified values applied</UL>
|
|
|
|
|
|
<!-- METHOD PARAMETERS START -->
|
|
|
|
<UL>
|
|
<B>Parameters:</B>
|
|
|
|
<UL><CODE>values</CODE> - The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {YAHOO.ext.DomHelper.Template.prototype.foo = 'bar';})
|
|
</UL>
|
|
|
|
</UL>
|
|
|
|
<!-- METHOD PARAMETERS END -->
|
|
|
|
|
|
|
|
<!-- ADDITIONAL ATTRIBUTES START -->
|
|
|
|
<!-- ADDITIONAL ATTRIBUTES END -->
|
|
<HR>
|
|
|
|
<A NAME="compile"><!-- --></A>
|
|
<H3>compile</H3>
|
|
<PRE>void <B>compile</B>()</PRE>
|
|
|
|
<UL>Compiles the template into an internal function, eliminating the RegEx overhead</UL>
|
|
|
|
|
|
<!-- METHOD PARAMETERS START -->
|
|
|
|
<!-- METHOD PARAMETERS END -->
|
|
|
|
|
|
|
|
<!-- ADDITIONAL ATTRIBUTES START -->
|
|
|
|
<!-- ADDITIONAL ATTRIBUTES END -->
|
|
<HR>
|
|
|
|
<A NAME="insertAfter"><!-- --></A>
|
|
<H3>insertAfter</H3>
|
|
<PRE>HTMLElement <B>insertAfter</B>(<HTMLElement> el, <Object> values)</PRE>
|
|
|
|
<UL>Applies the supplied values to the template and inserts the new node(s) after el</UL>
|
|
|
|
|
|
<!-- METHOD PARAMETERS START -->
|
|
|
|
<UL>
|
|
<B>Parameters:</B>
|
|
|
|
<UL><CODE>el</CODE> - The context element
|
|
</UL>
|
|
|
|
<UL><CODE>values</CODE> - The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {YAHOO.ext.DomHelper.Template.prototype.foo = 'bar';})
|
|
</UL>
|
|
|
|
</UL>
|
|
|
|
<!-- METHOD PARAMETERS END -->
|
|
|
|
|
|
<UL>
|
|
<B>Returns:</B>
|
|
<UL>
|
|
The new node
|
|
</UL>
|
|
</UL>
|
|
|
|
|
|
<!-- ADDITIONAL ATTRIBUTES START -->
|
|
|
|
<!-- ADDITIONAL ATTRIBUTES END -->
|
|
<HR>
|
|
|
|
<A NAME="insertBefore"><!-- --></A>
|
|
<H3>insertBefore</H3>
|
|
<PRE>HTMLElement <B>insertBefore</B>(<HTMLElement> el, <Object> values)</PRE>
|
|
|
|
<UL>Applies the supplied values to the template and inserts the new node(s) before el</UL>
|
|
|
|
|
|
<!-- METHOD PARAMETERS START -->
|
|
|
|
<UL>
|
|
<B>Parameters:</B>
|
|
|
|
<UL><CODE>el</CODE> - The context element
|
|
</UL>
|
|
|
|
<UL><CODE>values</CODE> - The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {YAHOO.ext.DomHelper.Template.prototype.foo = 'bar';})
|
|
</UL>
|
|
|
|
</UL>
|
|
|
|
<!-- METHOD PARAMETERS END -->
|
|
|
|
|
|
<UL>
|
|
<B>Returns:</B>
|
|
<UL>
|
|
The new node
|
|
</UL>
|
|
</UL>
|
|
|
|
|
|
<!-- ADDITIONAL ATTRIBUTES START -->
|
|
|
|
<!-- ADDITIONAL ATTRIBUTES END -->
|
|
<HR>
|
|
|
|
<A NAME="overwrite"><!-- --></A>
|
|
<H3>overwrite</H3>
|
|
<PRE>HTMLElement <B>overwrite</B>(<HTMLElement> el, <Object> values)</PRE>
|
|
|
|
<UL>Applies the supplied values to the template and overwrites the content of el with the new node(s)</UL>
|
|
|
|
|
|
<!-- METHOD PARAMETERS START -->
|
|
|
|
<UL>
|
|
<B>Parameters:</B>
|
|
|
|
<UL><CODE>el</CODE> - The context element
|
|
</UL>
|
|
|
|
<UL><CODE>values</CODE> - The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {YAHOO.ext.DomHelper.Template.prototype.foo = 'bar';})
|
|
</UL>
|
|
|
|
</UL>
|
|
|
|
<!-- METHOD PARAMETERS END -->
|
|
|
|
|
|
<UL>
|
|
<B>Returns:</B>
|
|
<UL>
|
|
The new node
|
|
</UL>
|
|
</UL>
|
|
|
|
|
|
<!-- ADDITIONAL ATTRIBUTES START -->
|
|
|
|
<!-- ADDITIONAL ATTRIBUTES END -->
|
|
<HR>
|
|
|
|
|
|
|
|
<!-- ============ METHOD DETAIL END ========== -->
|
|
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
|
|
<HR>
|
|
<FONT SIZE="-1">
|
|
|
|
</FONT>
|
|
<div class="jsdoc_ctime">Documentation generated by <a href="http://jsdoc.sourceforge.net/" target="_parent">JSDoc</a> on Sat Oct 14 06:07:10 2006</div>
|
|
</BODY>
|
|
</HTML>
|