2020

Table Of Contents
USING QUARKXPRESS SERVER
} else {
document.getElementById("box1File").name = "";
}
document.getElementById("Page").name = "Page";
document.getElementById("Layout").name = "Layout";
url = prefix + port + renderer + file;
document.getElementById("form1").action = url;
}
</script>
</head>
The Submit_onclick() function reads the values from the formand builds a
request URL using the server, port, and render type.
If the end user specifies a file name in the “File on Server” text box, he or she must
add file: to the beginning of the file path (for example, file:C:\data.txt).
The code above adds @dataimport to the end of the box name to accommodate
data import.
The action of the form is defined by this line:
document.getElementById("form1").action = url;
This form’s method is GET. The user agent gets the value (the URL) of the action,
appends a ? to it, adds the form data set, and submits the URL.
In this scenario, form data must be in ASCII.
Using HTTP GET with QXP Server Manager
HTTP GET with QuarkXPress Server Manager works the same way as HTTP GET with
QuarkXPress Server (see “Using HTTP GET with QXP Server“), except that Quark does
not recommend using GET if you are working with non-ASCII characters. The
behavior of GET requests with characters is highly browser-dependent, and there is
no standard that all browsers follow. Instead, use POST.
Using HTTP POST with QXP Server
Use HTML like the HTML in “Using HTTP GET with QXP Server“ to specify a server
and port where you want to send a request. You can specify the name of the target
project, the output type, and a scaling value. You can specify the name of a box and
the path of a text or picture files to import into that box, as long as the file’s path is
on the server’s file system. You can also use HTML like the HTML in “Using HTTP
GET with QXP Server“ to specify the page number and layout number of the project.
Differences between the GET method and the POST method are described below.
The form section of the HTML should begin with the following line of code:
<form id = form1 method="post" enctype="multipart/form-data">
The following HTML creates input fields that let the end user specify the name of a
file to be imported into a box:
<TD><INPUT id=box1FileTxt value="File on Client"
readOnly style="WIDTH: 180px; HEIGHT: 22px" ></TD>
<TD><input id=box1File type="file"
size="32" maxlength="256" style="WIDTH: 293px;
HEIGHT: 22px">
</TD></TR>
The action of the form is defined by this line:
document.getElementById("form1").action = url;
A GUIDE TO QUARKXPRESS SERVER 2020 | 37