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

📄 day2_1.html

📁 本本人最近搜集的xml学习文档,都是易学经典的文档,希望对大家有用!
💻 HTML
📖 第 1 页 / 共 2 页
字号:
  </tr>
  <tr> 
    <td colspan="2">-<a href="../../1-teach/photoshop/index.html">Photoshop</a></td>
  </tr>
  <tr> 
    <td colspan="2">-<a href="../../1-teach/flash/page1.html">Flash</a></td>
  </tr>
  <tr> 
    <td colspan="2">-<a href="../../1-teach/asp/index.html">ASP</a></td>
  </tr>
  <tr> 
    <td colspan="2">-<a href="../../1-teach/php/index.html">PHP</a></td>
  </tr>
  <tr> 
    <td colspan="2">-<a href="../../1-teach/java/index.htm">Java</a></td>
  </tr>
  <tr> 
    <td colspan="2">-<a href="../../1-teach/vb/index.htm">VB</a></td>
  </tr>
  <tr> 
    <td colspan="2">-<a href="../../1-teach/c/index.htm">C、C++</a></td>
  </tr>
  <tr> 
    <td colspan="2">-<a href="../../1-backend/database/php_mysql/index.html">PHP/MySQL</a></td>
  </tr>
  <tr> 
    <td colspan="2"><a href="../../1-backend/cgi_perl/perl_beginner/index.html">-Perl</a> 
    </td>
  </tr>
  <tr> 
    <td colspan="2">-<a href="../../1-teach/other/index.htm">其它</a> </td>
  </tr>
  <tr> 
    <td colspan="2" bgcolor="#666699"> 
      <div align="center"><font color="#FFFFFF">更多教程</font></div>
    </td>
  </tr>
  <tr> 
    <td colspan="2" height="17"><a href="../../1hdml/index.html">-HDML</a></td>
  </tr>
  <tr> 
    <td colspan="2" height="23"><font face="宋体"><a href="../../1-backend/database/course/day1_1.html">-网络数据库</a></font></td>
  </tr>
  <tr> 
    <td colspan="2" height="14"><a href="../../1-backend/protocols/ping/index.html"><font face="arial, helvetica, sans-serif">Ping</font></a></td>
  </tr>
  <tr> 
    <td colspan="2" height="20"><a href="../../1-backend/cgi_perl/search_engine/index.html">-创建搜索引擎</a></td>
  </tr>
  <tr> 
    <td colspan="2" height="16">-<a href="../../1adobe/GoLive/index.html">Adobe GoLive</a></td>
  </tr>
  <tr> 
    <td colspan="2"><a href="../../1-backend/cgi_perl/templates/index.html">模板</a></td>
  </tr>
  <tr> 
    <td colspan="2" align="center" bgcolor="#666699"><font color="#FFFFFF">合作伙伴</font></td>
  </tr>
  <tr> 
    <td colspan="2" align="left">-<a href="http://www.5dmedia.com/" target="_blank">5D精英网</a></td>
  </tr>
  <tr align="center"> 
    <td colspan="2"> <img src="../../Library/front_monkey.gif" width="59" height="68"></td>
  </tr>
  </tbody> 
</table>
<br><!-- #EndLibraryItem --></td>
      <!-- End of headlines (column 1: left column) --> <!-- Gutter between columns 1 and 2 --> 
      <td width="10" height="794"><img src="http://www.sohu.com/images/pixel.gif" width=10></td>
      <!-- Search box and directories (columns 2 and 3: middle columns, combined into one) --> 
      <td align=center valign=top width="558"> 
        <div align="left"><!-- #BeginEditable "1" --> 
<title>用WDDX交换数据-第二天</title>
用WDDX交换数据-第二天<a href="mailto:whovind@web-sters.com">Wade 
        Hovind</a> 
        <p> <b>第一页 CF和ASP的Pizza</b> </p>
        <p><img src="db.gif" width="268"
height="165" border="0" alt="Database Structure" align="right"> </p>
        <p>我的所有PIZZA应用程序正在连接一起。我尝试编写一些机器人来提供服务并且接收WDDX信息包。同时我有能力将那些数据转化为可以在客户端使用的JAVASCRIPT对象。我现在的感觉好极了。</p>
        <p> 我设计了数据库并且将之简化。在制作PIZZA的地方和他们制作的PIZZA之间一定存在着关系。我不打算与你讨论标准化(将多余的数据从数据模型中删除的过程)。Jay 
          Greenspan的文章<a href="http://www.hotwired.com/webmonkey/databases/tutorials/tutorial3.html" target="_blank">你的第一个数据库(Your&nbsp; 
          First Database)</a>对此有详细的介绍。以下是为此应用程序设计的结构。</p>
        <p> 我并不想将此弄得太复杂,因此我决定不过多考虑PIZZA的顶端和令人讨厌的如何进行PIZZA配置。 如果人们能够只输入PIZZA描述的顶端的种类,我将会十分快乐。</p>
        <p> 我知道我需要一对记录集合,因为我必须有两个记录集合才能工作。由于我想在父端和子端都能够允许更新数据,我不想使用一个映射连接符。如果我使用了一个具有映射连接符的记录集合,那么我必须保证所有信息流通。我创建了一个机器人,它可以为PIZZAJOINT数据表收集所有数据,并且人们可以获取所有与PIZZA有关的信息。代码十分简单。以下是两个执行过程:一个使用COLDFUSION作为应用服务器而另一个采用ASP。它是确确实实的交叉平台。</p>
        <pre>



&lt;CFQUERY 

    NAME=&quot;GetPizzaJoints&quot; 

    DATASOURCE=&quot;Pizzas&quot; 

    DBTYPE=&quot;ODBC&quot;&gt;

        SELECT PizzaJoints.*

        FROM PizzaJoints

        ORDER BY PizzaJoints.Name

&lt;/CFQUERY&gt;

&lt;CFWDDX  

        INPUT=&quot;#GetPizzaJoint#&quot;  

        ACTION=&quot;CFML2WDDX&quot;&gt;

</pre>
        <p> 是不是十分简单?如果你想使用ASP,那么可以这样:</p>
        <pre>



&lt;%@ Language=&quot;JScript&quot; %&gt;

&lt;%

//run a query against the PizzaJoints Table

DBConn = Server.CreateObject('ADODB.Connection')

DBConn.Open('PizzaJoint')

SQLString = &quot;SELECT * FROM PizzaJoints ORDER BY Name&quot;

rsPizzaJoints = DBConn.Execute(SQLString)



myRS = Server.CreateObject(&quot;WDDX.Recordset,1&quot;)

myRS.AddColumn('ID')

myRS.AddColumn('Name')

myRS.AddColumn('Phone')

myRS.AddColumn('Notes')



rowNum=0

while(!rsPizzaJoints.EOF) {

    rsPizzaJoints.addRows(1)

    rowNum++



    myRS.setField(rowNum,'ID',rsPizzaJoint('ID').value)

    myRS.setField(rowNum,'Name',rsPizzaJoint('Name').value)

    myRS.setField(rowNum,'Phone',rsPizzaJoint('Phone').value)

    myRS.setField(rowNum,'Notes',rsPizzaJoint('Notes').value)



    rsPizzaJoint.moveNext()

}



mySerializer = Server.CreateObject('WDDX.Serializer,1')

pizzaPacket = mySerializer.serialize(myRS)

Response.Write(pizzaPacket)

&gt;

</pre>
        <p>正如你看到的,使用ASP需要的工作量较大,但是它不难于理解。对于ASP或是COM对象操作而言,你必须程序化的加入列或改变记录集合。CFML在一定程度上简化了操作界面,但是你最终会在这上面吃亏。<a href="day2_2.html">&gt;&gt;</a></p>
        <p><b>用WDDX交换数据</b><br>
          <font color="#FF0000">第一页</font> CF和ASP的Pizza<br>
          <font color="#FF0000">第二页</font> <a href="day2_2.html">可口的数据库</a><br>
          <font color="#FF0000">第三页</font> <a href="day2_3.html">所有的可能性</a><br>
          <font color="#FF0000">第四页</font> <a href="day2_4.html">WDDX的瑰丽的未来</a></p>
        <p>[<a href="index.html">第1天</a>][第2天]</p>
        <!-- #EndEditable --></div>
      </td>
      <!-- End of search box and directories (columns 2 and 3: middle columns, combined into one) --> 
      <!-- Gutter between columns 3 and 4 --> <!-- Other stuff (column 4: right column) --> 
      <!-- End of other stuff (column 4: right column) --> </tr>
  </table>
<!-- End of table surrounding page contents -->

  <hr noshade size=1 width=700>
 <span class=eng><br>
  Copyright (C) 1998-2000 Internet Technologies China.&nbsp; All rights reserved. 
  </span> 
</center>
</body>
<!-- #EndTemplate --></html>

⌨️ 快捷键说明

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