2015

Table Of Contents
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.
If you send a delete request to QuarkXPress Server Manager using HTTP or the Web
services interface while the common doc pool switch is set to off in the
QuarkXPress Server Manager client, the file or folder is uploaded to all registered
QuarkXPress Server instances. If the common doc pool is enabled, the file or folder
can be deleted from any one registered QuarkXPress server instance.
delete
Namespace
148 | A GUIDE TO QUARKXPRESS SERVER 2015
USING QUARKXPRESS SERVER