9.2

Table Of Contents
Please enter the port number on which QuarkXPress Server is running:
<INPUT TYPE="TextBox" NAME="Port"><br><br>
Please enter the new name (along with extension) with which file will be
uploaded:
<INPUT TYPE="TextBox" NAME="NewName"><br><br>
Please select the file you want to upload: <INPUT TYPE=file NAME="uploadFile">
<br><br>
<INPUT TYPE=submit VALUE="Submit">
</FORM>
</BODY>
</HTML>
The information entered in the form is created with the following tags:
<FORM ID="UploadForm" METHOD = "post"
ENCTYPE="multipart/form-data" onSubmit="UploadDocument()">
Please enter the name or IP of machine where QuarkXPress Server is running:
<INPUT TYPE="TextBox" NAME="MachineIP"><br><br>
Please enter the port number on which QuarkXPress Server is running:
<INPUT TYPE="TextBox" NAME="Port"><br><br>
Please enter the new name (along with extension) with which file will be
uploaded:
<INPUT TYPE="TextBox" NAME="NewName"><br><br>
Please select the file you want to upload:
<INPUT TYPE=file NAME="uploadFile"><br><br>
<INPUT TYPE=submit VALUE="Submit">
</FORM>
The FORM tag specifies that the method of the request is POST. This request is a
"Multipart/form-data" request. When you submit the form, the UploadDocument()
function is called.
Use the INPUT tag to create the text box and the Browse button.
<INPUT TYPE="TextBox": To create text boxes only.
<INPUT TYPE=file: To create a combination of text box and the Browse button in the
form. When you click Browse and choose any file, the file path of the selected file displays
in the text box linked with the Browse button.
You can use the INPUT tag to create the Submit button: <INPUT TYPE=submit
VALUE="Submit">
When you click Submit, the UploadDocument() function is called. This function is defined
inside a script tag. It combines the information that has been entered in the form to create
a URL for the addfile request, then sends this URL to QuarkXPress Server for processing.
The code for the UploadDocument() function is as follows:
<SCRIPT LANGUAGE="JavaScript">
function UploadDocument() {
var URL;
URL = "http://" + UploadForm.MachineIP.value + ":"
+ UploadForm.Port.value + "/addfile/" + UploadForm.NewName.value;
UploadForm.action = URL;
}
</SCRIPT>
Delete
The delete request handler removes a specified document or folder from the document
pool.
116 | QXP SERVER 9.2 WEB INTEGRATION GUIDE
USING THE WEB INTERFACE