当前位置: 首页 > 网络学院 > 客户端脚本教程 > APPML > AppML FAQ

APPML
AppML HTML 报告
AppML 过滤函数
AppML HTML 列表
AppML HTML 表单
AppML XML 报告

APPML 中的 AppML FAQ


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-01   浏览: 649 ::
收藏到网摘: n/a

This page contains a selection of common mistakes and problems reported from developers who have tried to download and run the AppML examples on their own computer.
这个页面包含了下载、运行AppML的常见错误和问题的报告。


Your Web Server Must Be IIS
你的网络服务器必须是IIS

The case study examples will only run on a Microsoft Internet Information Server (IIS).
案例研究中的离子只能在IIS上运行。

All Windows servers, and Windows XP professional, support IIS.
所有的Windows服务器以及Windows XP专业版,都支持IIS。


Files Must Be Stored In A Web Folder
文件必须存放在网络文件夹中

Your downloaded files MUST be stored in a web folder.
你下载的文件必须存放在网络文件夹中。

The case study examples will only work when the files are stored in a folder that is recognized by your Web server.
仅当文件存放在网络服务器可识别的文件夹中时,案例研究中的例子才能运行。

Note: For security reasons your databases should NOT be stored in a web folder.
注意:处于安全因素考虑,你的数据库不要存储在网络文件夹中。


Don't Forget the Database
不要忘记数据库

The case study is using the Microsoft Access database Northwind.
案例研究使用了微软Access数据库Northwind。

The case application expects to find the Northwind database at db/northwind.mdb on your web.
案例应用程序在服务器的db/northwind.mdb中查找Northwind数据库。

Please refer to the chapter "Case Download" if you want to use another database.
如果你希望使用另外一个数据库,请转入“案例下载”这章进行学习。


Your Browser Must Support Cookies
你的浏览器必须支持Cookies

The case study examples use cookies to maintain state information between AppML services.
案例研究中的例子使用cookies来维护AppML服务器的陈述信息。

The examples will only work if your browser supports cookies.
仅当你的浏览器支持cookies时,该案例才能够运行。


Test the Application Address
测试你的应用程序地址

After download you can test-run the application by copying the following into the address field of your browser:
你可以通过复制下面的这段链接地址到浏览器中的地址栏中来下载 测试-运行 应用程序。

http://localhost/appmlcase/appml_test.htm

Remember:
请记住:

If you have installed the application on a computer different from your own, you must substitute "localhost" with that computer's IP address.
如果你已经将应用程序安装在了另外一台服务器上,你必须以该台计算机的IP地址来替换“localhost” 。

If you have installed the application in a folder different from appmlcase, you must substitute "appmlcase/appml_test.htm" with "foldername/appml_test.htm".
如果你已经将应用程序安装在了不同于appml的文件夹中,你必须使用“foldername/appml_test.htm” 来替换"appmlcase/appml_test.htm"。


Start the Services From a Link
从一个链接开始服务

AppML services should be started from a link on a Web page.
AppML 服务应该从网页中的一个链接开始。

This HTML code example can be used to start an AppML service:
HTML代码案例可以用于启动一个AppML服务。

<a href="appml.asp?appname=example&displaytype=report">Testing Example</a>
<a href="appml.asp?appname=example&displaytype=report">测试案例</a>

Remember to include a path if the linking page is not in the same Web folder as the AppML service:
请记住,如果链接页面所在的网络文件夹与AppML服务所在的网络文件夹不一致,那么一定要指明路径:

<a href="testfolder/app_htmlreport.asp?appname=example">Testing Example</a>
<a href="testfolder/app_htmlreport.asp?appname=example">测试案例</a>

Remember to include a correct path if your XML files are not in northwind folder:
请记住,如果你的XML文件并不位于northwind 文件夹,那么需要指明正确的路径:

<a href="app_htmlreport.asp?appname=foldername/example">Testing Example</a>
<a href="app_htmlreport.asp?appname=foldername/example">测试案例</a>


Remember the Appname Parameter
请记住Appname参数

AppML services will not run without the appname parameter.
AppML 服务不会运行不包含appname参数的程序。

This is correct: appml.asp?appname=example
这是正确的:appml.asp?appname=example

This is wrong: appml.asp
这是错误的:appml.asp


Don't Use XML File Extensions
不要使用XML文件扩展名

This is correct: appml.asp?appname=example
这是正确的:appml.asp?appname=example

This is wrong: appml.asp?appname=example.xml
这是错误的:appml.asp?appname=example.xml


Remember the ASP File Extensions
请记住ASP文件扩展名

This is correct: appml.asp?appname=example
这是正确的:appml.asp?appname=example

This is wrong: appml?appname=example
这是错误的:appml.?appname=example


Error With Fields Named "id"
名为“id”的字段错误

AppML will not work correctly if an HTML form contains an input field named "id".
如果HTML表单包含了名为“id”的输入字段,那么AppML将不能正确的工作。

The reason for this is an error in Internet Explorer that returns the content of the field named "id" instead of the form attribute "id" in the statement form.getattribute("id") in the source code.
产生错误的原因是:如果返回的是名为“id” 的字段内容,而非源代码中.getattribute("id")语句中的“id” 属性,那么,IE将会发送错误消息。

The result is an "Error in page" message from Internet Explorer.
IE将会发送一条“页面错误”的消息。


Error With <textarea>
<textarea>错误

AppML will not work correctly if an HTML form contains a textarea field that is closed within the opening tag.
如果HTML中未包含“textarea”字段的结束标签,那么,AppML将不会正常工作。

Correct: <textarea rows="10" cols="80" id="notes"></textarea>
正确:<textarea rows="10" cols="80" id="notes"></textarea>

Incorrect: <textarea rows="10" cols="80" id="notes" />
错误:<textarea rows="10" cols="80" id="notes" />


WHERE Clause In SQL
SQL中的WHERE子句

AppML will not work correctly if you use a WHERE clause in your SQL statements. The correct place to add a WHERE clause is in the <filters> element. This enables AppML to dynamically change the WHERE clause at runtime.
如果SQL语句中包含WHERE子句,那么AppML将会发生错误。正确的方法是将WHERE子句添加在<filters>元素中。这能使得AppML在运行时,动态地改变WHERE子句。

Correct
正确:

<sql>SELECT * FROM employees</sql>
<filters>
<where>name="Jonson"</where>
</filters>

Incorrect:
错误:

<sql>SELECT * FROM employees WHERE name="Jonson"</sql>


Max 500 Records In Screen Display
在显示器中显示500条记录

AppML limits the screen display of records to 500.
AppML可以在显示器中最多显示500条记录

We think it makes no sense to let a user list thousands of records to choose from. If the list is too long the user should use the filter to narrow his search.
我们认为,如果能够使用户罗列上千条记录的话,这样做是非常有意义的。如果列表太长,那么用户使用过滤功能来减少搜索的记录数。

This limit does not apply for reports. It is only a limitation for a screen list.
该限制不能应用于报告中。它仅是对显示列表的限制。


评论 (0) All

登陆 | 还没注册?