8.0
Table Of Contents
- Overview
- New and enhanced features
- Getting started
- Functions
- Function overview
- Render types
- Content modifiers
- Render modifiers
- XML modify
- XML deconstruct and construct
- About XML deconstruct/construct
- xml
- construct
- Deconstructing a project
- Constructing a project
- Working with pages and spreads
- Working with layers
- Working with boxes
- Working with pictures
- Working with text
- Working with tables
- Working with Composition Zones
- Using server XSLT
- Working with lists
- Working with anchored boxes
- Working with placeholders
- Working with metadata
- Working with hidden text
- Administrative Request handlers
- The Modifier DTD
- Sample applications
- Contact Quark
- Legal notice
<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">
creates the
Submit button on the form.
When you click Submit, the UploadDocument() function is called. This function is defined inside a script
tag. This function combines the information entered in the form to create a URL for the addfile request
and sends this URL to QuarkXPress Server for processing. The code of 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>
Declare a variable URL. This variable combines the information entered in the form to create an addfile
request. The UploadForm.MachineIP.value statement retrieves the IP address or the name of your
computer. The other information is also retrieved and combined. Finally, the statement
UploadForm.action = URL; sends the URL to QuarkXPress Server for processing.
Page 188