|
|||||||||||||
Technical Support On-Line Manuals RL-ARM User's Guide (MDK v4) ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Script LanguageThe Embedded Web Server provides a small script language which can be used to generate true dynamic web pages. The HTTP Server processes the script source file line by line and calls the CGI functions as needed. The output from a CGI function is sent to the web client as a part of the web page. Each script line starts with a command character which specifies a command for the script interpreter. The script language itself is simple and works as follows:
Here is an example of a web page written in the script language. This web page edits or changes the system password. The web page is stored in three files (two are static, and the third (main file) is the script file that generates dynamic data).
This is how the generated web page looks like, with the dynamically generated items in the Setting column: You can see the HTML source code of this web page. This data is actually sent to the web client when the client requests the web page system.cgi. The script file is processed by the script interpreter, and the following data is generated by the Web Server. You can compare the generated HTML source with the script file to see where the CGI interface comes in. <HTML> <HEAD> <TITLE>System Settings</TITLE> </HEAD> <BODY TEXT=#000000 BGCOLOR=#ccddff LINK=#0000FF VLINK=#0000FF ALINK=#FF0000> <H2 ALIGN=CENTER>System Settings</H2> <FORM ACTION=index.htm METHOD=POST NAME=CGI> <TABLE BORDER=0 WIDTH=99%> <TR BGCOLOR=#aaccff> <TH WIDTH=40%>Item</TH> <TH WIDTH=60%>Setting</TH> </TR> <TR><TD><IMG SRC=pabb.gif>Authentication</TD><TD><b>Enabled</b></TD></TR> <TR><TD><IMG SRC=pabb.gif>Password for user 'admin'</TD> <TD><INPUT TYPE=TEXT NAME=pw SIZE=10 MAXLENGTH=10 VALUE="test"></TD></TR> <TR><TD><IMG SRC=pabb.gif>Retype your password</TD> <TD><INPUT TYPE=TEXT NAME=pw2 SIZE=10 MAXLENGTH=10 VALUE="test"></TD></TR> <TR> <TD> </TD> <TD> </TD> </TR> <TR> <TD></TD> <TD align="right"> <INPUT TYPE=SUBMIT NAME=set VALUE="Change" id="sbm"> <INPUT TYPE=RESET VALUE="Undo"> <INPUT TYPE=BUTTON VALUE="Home" OnClick="location='/index.htm'"> </TD> </TR> </FORM> <p>This page allows you to change the system <b>Password</b>, for the username <b>admin</b>. Default <b>realm</b>, <b>user</b> and <b>password</b> can be set in configuration file. This Form uses a <b>POST</b> method to send data back to a Web server. You need to click on <b>Change</b> button to activate the changes. </p> </BODY> </HTML> Note
| ||||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.