⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sarissa.html

📁 sarissa用于支持多浏览器的浏览及编程
💻 HTML
📖 第 1 页 / 共 3 页
字号:
      <!-- ADDITIONAL ATTRIBUTES START -->      <!-- ADDITIONAL ATTRIBUTES  END --><HR>   <A NAME="!s!moveChildNodes"><!-- --></A>   <H3>moveChildNodes</H3>   <PRE>&lt;static&gt; void <B>moveChildNodes</B>(nodeFrom, nodeTo, bPreserveExisting)</PRE>         <UL><p> Moves the childNodes of nodeFrom to nodeTo</p> <p> <b>Note:</b> The second object's original content is deleted before  the move operation, unless you supply a true third parameter</p></UL>      <!-- METHOD PARAMETERS START -->      <UL>   <B>Parameters:</B>        <UL><CODE>nodeFrom</CODE> -  the Node to copy the childNodes from        </UL>         <UL><CODE>nodeTo</CODE> -  the Node to copy the childNodes to        </UL>         <UL><CODE>bPreserveExisting</CODE> -  whether to preserve the original content of nodeTo, default is          </UL>       </UL>      <!-- METHOD PARAMETERS END -->      <!-- ADDITIONAL ATTRIBUTES START -->      <!-- ADDITIONAL ATTRIBUTES  END --><HR>   <A NAME="!s!setXpathNamespaces"><!-- --></A>   <H3>setXpathNamespaces</H3>   <PRE>&lt;static&gt; void <B>setXpathNamespaces</B>(oDoc, sNsSet)</PRE>         <UL><p>Programmatically control namespace URI/prefix mappings for XPath queries.</p> <p>This method comes especially handy when used to apply XPath queries on XML documents with a default namespace, as there is no other way of mapping that to a prefix.</p> <p>Using no namespace prefix in DOM Level 3 XPath queries, implies you are looking for elements in the null namespace. If you need to look for nodes in the default namespace, you need to map a prefix to it first like:</p> <pre>Sarissa.setXpathNamespaces(oDoc, &quot;xmlns:myprefix=&amp;aposhttp://mynsURI&amp;apos&quot;);</pre> <p><b>Note 1 </b>: Use this method only if the source document features a default namespace (without a prefix), otherwise just use IE's setProperty (moz will rezolve non-default namespaces by itself). You will need to map that namespace to a prefix for queries to work.</p> <p><b>Note 2 </b>: This method calls IE's setProperty method to set the appropriate namespace-prefix mappings, so you dont have to do that.</p></UL>      <!-- METHOD PARAMETERS START -->      <UL>   <B>Parameters:</B>        <UL><CODE>oDoc</CODE> -  The target XMLDocument to set the namespace mappings for.        </UL>         <UL><CODE>sNsSet</CODE> -  A whilespace-seperated list of namespace declarations as             those would appear in an XML document. E.g.:             <code>&quot;xmlns:xhtml=&apos;http://www.w3.org/1999/xhtml&apos;  xmlns:&apos;http://www.w3.org/1999/XSL/Transform&apos;&quot;</code>        </UL>       </UL>      <!-- METHOD PARAMETERS END -->      <!-- ADDITIONAL ATTRIBUTES START -->      <UL>      <B>Throws:</B><UL>- An error if the format of the given namespace declarations is bad.       </UL>   </UL>      <!-- ADDITIONAL ATTRIBUTES  END --><HR>   <A NAME="!s!setXslParameter"><!-- --></A>   <H3>setXslParameter</H3>   <PRE>&lt;static&gt; Object <B>setXslParameter</B>(oXslDoc, sParamQName, sParamValue)</PRE>         <UL><p>Deprecated (use XSLTProcessor instead): Set xslt parameters.</p> <p><b>Note </b> that this method can only work for the main stylesheet and not any included/imported files.</p></UL>      <!-- METHOD PARAMETERS START -->      <UL>   <B>Parameters:</B>        <UL><CODE>oXslDoc</CODE> -  the target XSLT DOM Document        </UL>         <UL><CODE>sParamValue</CODE> -  the value of the XSLT parameter        </UL>         <UL><CODE>sParamName</CODE> -  the name of the XSLT parameter        </UL>       </UL>      <!-- METHOD PARAMETERS END -->      <UL>   <B>Returns:</B>        <UL>        whether the parameter was set succefully         </UL>   </UL>      <!-- ADDITIONAL ATTRIBUTES START -->      <UL>      <B>Deprecated</B> <I>use the XSLTProcessor instead  </I><BR/><BR/>   </UL>      <!-- ADDITIONAL ATTRIBUTES  END --><HR>   <A NAME="!s!stripTags"><!-- --></A>   <H3>stripTags</H3>   <PRE>&lt;static&gt; Object <B>stripTags</B>(s)</PRE>         <UL>strips tags from a markup string</UL>      <!-- METHOD PARAMETERS START -->      <!-- METHOD PARAMETERS END -->      <!-- ADDITIONAL ATTRIBUTES START -->      <!-- ADDITIONAL ATTRIBUTES  END --><HR>   <A NAME="!s!unescape"><!-- --></A>   <H3>unescape</H3>   <PRE>&lt;static&gt; Object <B>unescape</B>(sXml)</PRE>         <UL>Unescape the given string. This turns the occurences of the predefined XML  entities to become the characters they represent correspond to the five predefined XML entities</UL>      <!-- METHOD PARAMETERS START -->      <UL>   <B>Parameters:</B>        <UL><CODE>sXml</CODE> -  the string to unescape      </UL>       </UL>      <!-- METHOD PARAMETERS END -->      <!-- ADDITIONAL ATTRIBUTES START -->      <!-- ADDITIONAL ATTRIBUTES  END --><HR>   <A NAME="!s!updateContentFromNode"><!-- --></A>   <H3>updateContentFromNode</H3>   <PRE>&lt;static&gt; void <B>updateContentFromNode</B>(oNode, oTargetElement, xsltproc, callback)</PRE>         <UL>Update an element's content with the given DOM node. Passing a configured XSLT  processor will result in transforming and updating oNode before using it to update oTargetElement. You can also pass a callback function to be executed when the update is finished. The function will be called as  <code>functionName(oNode, oTargetElement);</code></UL>      <!-- METHOD PARAMETERS START -->      <UL>   <B>Parameters:</B>        <UL><CODE>oNode</CODE> -  the URL to make the request to        </UL>         <UL><CODE>oTargetElement</CODE> -  the element to update        </UL>         <UL><CODE>xsltproc</CODE> -  (optional) the transformer to use on the given                    DOM node before updating the target element with it        </UL>         <UL><CODE>callback</CODE> -  (optional) a Function object to execute once the update is finished successfuly, called as <code>callback(oNode, oTargetElement)</code>          </UL>       </UL>      <!-- METHOD PARAMETERS END -->      <!-- ADDITIONAL ATTRIBUTES START -->      <!-- ADDITIONAL ATTRIBUTES  END --><HR>   <A NAME="!s!updateContentFromURI"><!-- --></A>   <H3>updateContentFromURI</H3>   <PRE>&lt;static&gt; void <B>updateContentFromURI</B>(sFromUrl, oTargetElement, xsltproc, callback, skipCache)</PRE>         <UL>Update an element with response of a GET request on the given URL.  Passing a configured XSLT  processor will result in transforming and updating oNode before using it to update oTargetElement. You can also pass a callback function to be executed when the update is finished. The function will be called as  <code>functionName(oNode, oTargetElement);</code></UL>      <!-- METHOD PARAMETERS START -->      <UL>   <B>Parameters:</B>        <UL><CODE>sFromUrl</CODE> -  the URL to make the request to        </UL>         <UL><CODE>oTargetElement</CODE> -  the element to update        </UL>         <UL><CODE>xsltproc</CODE> -  (optional) the transformer to use on the returned                   content before updating the target element with it        </UL>         <UL><CODE>callback</CODE> -  (optional) a Function object to execute once the update is finished successfuly, called as <code>callback(oNode, oTargetElement)</code>        </UL>         <UL><CODE>skipCache</CODE> -  (optional) whether to skip any cache          </UL>       </UL>      <!-- METHOD PARAMETERS END -->      <!-- ADDITIONAL ATTRIBUTES START -->      <!-- ADDITIONAL ATTRIBUTES  END --><HR>   <A NAME="!s!xmlize"><!-- --></A>   <H3>xmlize</H3>   <PRE>&lt;static&gt; Object <B>xmlize</B>(anyObject, objectName, indentSpace)</PRE>         <UL><p>Serialize any object to an XML string. All properties are serialized using the property name as the XML element name. Array elements are rendered as <code>array-item</code> elements,  using their index/key as the value of the <code>key</code> attribute.</p></UL>      <!-- METHOD PARAMETERS START -->      <UL>   <B>Parameters:</B>        <UL><CODE>anyObject</CODE> -  the object to serialize        </UL>         <UL><CODE>objectName</CODE> -  a name for that object        </UL>       </UL>      <!-- METHOD PARAMETERS END -->      <UL>   <B>Returns:</B>        <UL>        the XML serializationj of the given object as a string         </UL>   </UL>      <!-- ADDITIONAL ATTRIBUTES START -->      <!-- ADDITIONAL ATTRIBUTES  END --><HR><!-- ============ METHOD DETAIL END ========== --><!-- ========= END OF CLASS DATA ========= --><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=3 BGCOLOR="#b8cade" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#b8cade" CLASS="NavBarCell1">    <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#b8cade" CLASS="NavBarCell1">  <A HREF="overview-summary-sarissa.js.html"><FONT CLASS="NavBarFont1"><B>File</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#b8cade" CLASS="NavBarCell1">    <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><b>Tree</b></FONT></A>&nbsp;</TD>  <!--TD BGCOLOR="#b8cade" CLASS="NavBarCell1"-->    <!--A HREF="deprecated-list.html"--><!--FONT CLASS="NavBarFont1">Deprecated</FONT--><!--/A--><!--&nbsp;</TD-->  <TD BGCOLOR="#b8cade" CLASS="NavBarCell1">    <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#b8cade" CLASS="NavBarCell1">    <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><B>sarissa</B></EM></TD</TR><TR><TD BGCOLOR="#eeeeee" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="Element.html"><B>PREV CLASS</B></A><!--    NEXT CLASS -->&nbsp;<A HREF="SarissaParseError.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="#eeeeee" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="Sarissa.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT>  <!--  if(window==top) {    document.writeln('<A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT><A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><FONT SIZE="-1"></FONT><div class="jsdoc_ctime">Documentation generated by <a href="http://jsdoc.sourceforge.net/" target="_parent">JSDoc</a> on Thu Nov 30 22:06:11 2006</div></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -