📄 p4.html
字号:
<HTML><HEAD><TITLE>NetProg Homework 4</TITLE><LINK rel=stylesheet type="text/css" HREF=../../style/proj.css></HEAD><BODY BGCOLOR=WHITE MARGINHEIGHT=0 MARGINWIDTH=0 TOPMARGIN=0 LEFTMARGIN=0><TABLE bgColor=#8899aa border=0 cellPadding=4 cellSpacing=0 width="100%"> <TR> <TD class=title>  NetProg 2002 HW4</TD> </TR><TR BGCOLOR=BLACK><TD CLASS=menu>    <A CLASS=menu HREF=#desc>Project Description</A>     |   <A CLASS=menu HREF=#deliv>Deliverables</A>     |   <A CLASS=menu HREF=#grading>Grading</A>     |   <A CLASS=menu HREF=#submitting>Submission</A>     |   <A CLASS=menu HREF=#notes>Notes & Hints</A></TD></TR></TABLE><DIV CLASS=page><H2 style="font-size: 16pt; color:black; text-align:center;">Homework 4: CGI Popup Creation Program<BR>Due Date for Local and live remote students: Fri, March 22nd (by11:59PM)<BR>Due Date for Tape and Videostream Delay students: Fri, March 29th</H2><H4 ALIGN=CENTER>Late Penalty: 10 points per day (out of 100)</H4><H4 ALIGN=CENTER>Submit to <I>netprog-submit@cs.rpi.edu</I> with the subject line "4"<BR>Complete Submission instructions are <A HREF=#submitting>here</A></H4><A NAME=desc><HR></A><P>Your assignment is to write a <B>CGI</B> program that supports the creationof at least 4 popup windows. The user must be given a form that allows the user tospecify the URL for each popup window along with a width and height.When the user submits the form the indicated windows will pop up.</P><P>There is a demo system available <A HREF=demo/default.htm>here</A></P><H3>What is required:</H3><UL><LI><P>Your CGI program must support the GET method, and your form should set themethod to GET. This will allow users to bookmark a favorite collection of popups!</P></LI><LI><P>Your program can be written in C, C++ or Perl and must be installed ona web server so that we can test the system without installing your code.Your submision will include all the source code for the actual CGIprogram, but we will be testing your program wherever you installit.</P></LI><LI><P>You must allow users to specify the URL, width and height for at least 4 popup windows. There is no requirement that you support other options ( window placement, toolbar,resizeable, status line, menu), but it's not hard to do. The demo supports a few optionsother than the URL and size, you do not need to support everything the demo supports.</P></LI><LI><P>You must write a CGI program! It is possible to have a pure Javascriptimplemenation of this project, but your assignment is a CGI program that generatesan HTML page containing Javascript that creates the popup windows. The CGI submission must be a valid URL itself, so it can be bookmarked (so you could create a hyperlink thatgenerates all the popups without filling out the form). Think about this: what if one of the URLS that the user types in to your form is itself a URL that runs your program ... ?</P></LI></UL><HR><A NAME=deliv><H3>Deliverables</H3> </A><P>You should submit all the files necessary to build and run your CGI program. Your submission must also include a file named READMEthat includes the following: </P><UL><LI><P>Your Name</P></LI><LI><P>The URL of your installed and runnable CGI program.</P></LI><LI><P>A list of files and a 1-line description of the contents of each file. </P></LI><LI><P>References to any borrowed code (the source code must also include this information).<P></LI><LI><P>A description of any known problems. If you think you know how to solve the problem(s) and simply didn't have time to do so - let us know how!</P></LI><LI><P>Anything else you think might be useful to us, such as what youlearned, what you had trouble with, if the project was too hard or tooeasy, etc.</P></LI></UL><A NAME=grading><H3>Grading</H3></A><P>Your program should work properly when it receives requests generated by a browserwhen a user submits the form you provide. Your program should not crash no matter whatkind of nonsense query-string we send it, in all cases the browser should receive outputgenerated by your progam (not the server telling us that your program has a problem...).You can ignore nonsense (just send back a copy of the original form if you get somethingthat doesn't make sense) or explicitly send back an HTML document that describesthe user error - it's up to you.</P><P>Points will be awarded as follows (partial credit is available foreach item): </P><TABLE BORDER=0><TR> <TH WIDTH=60% ALIGN=LEFT>System works properly when used with your form </TH> <TD>60%</TD></TR><TR> <TH ALIGN=LEFT>System can handle any kind of nonsense.</TH> <TD>15%</TD></TR><TR> <TH ALIGN=LEFT>Style/readability</TH> <TD>25%</TD> <TR> </TABLE> <A NAME=submitting><H3>Submitting your files</H3></A><P>Submission of your homework is via email, the general idea is tosend an email message with all your files as attachments. There is an automated email submission system that will respond to yoursubmission right away, so you will have a record that we got yourfiles. </P><P>All projects must be submitted via email to <AHREF=mailto:netprog-submit@cs.rpi.edu><I>netprog-submit@cs.rpi.edu</I></A>. Thesubject line of the submission message should contain a single numberindicating the project number (4 for HW4). You mustinclude your files as attachments, feel free to send a zip-file or atar file.<P><B>Don't send compiled code!</B></P><P>You can expect a return email indicating receipt of your projectsubmission immediately. This receipt will include a list of all thefiles that were successfully extracted by the submission script -please look over the receipt carefully to make sure your submissionworked.</P><P><B>Multiple Submissions: </B> You can resubmit up to 10 times foreach project, we will always grade the last submission received unlessyou tell us otherwise.</P><A NAME=notes><H3>Notes, Hints and Links</H3></A><UL> <LI><P>You will need to know to generate a popup window using Javascript, here are some Javascript resources that discuss the <CODE>window</CODE> object and how to use the <CODE>window.open()</CODE> method to create a popup window:</P> <UL> <LI><P><A HREF=../../../../../www.w3schools.com/js/js_window.asp>www.w3schools.com</A></P></LI> <LI><P><A HREF=../../../../../www.webreference.com/js/column7/jslaunch.html> www.webreference.com</A></P></LI> </UL> </LI> <LI><P>You will also need to be able to construct an HTML form, here are some resources:</P> <UL> <LI><P> <A HREF=../../../../../www.webcom.com/~webcom/html/tutor/forms/default.htm> www.webcom.com</A></P></LI> <LI><P> <A HREF=../../../../../mastercgi.com/howtoinfo/formtutorial.shtml>mastercgi.com</A> </P></LI> <LI><P> <A HREF=../../../../../www.2kweb.net/html-tutorial/default.htm>www.2kweb.net</A> </P></LI> </UL></UL></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -