2017

Table Of Contents
USING QUARKXPRESS SERVER
A Guide to QuarkXPress Server 2017 | 37
<TR>
<TD>
<INPUT id=box1FileTxt value=”File on Server”
r
eadOnly style=”WIDTH: 181px; HEIGHT: 22px” >
</TD>
<TD>
<
INPUT id=box1File maxLength=256 size=43 style=”
WIDTH: 293px; HEIGHT: 22px”>
</TD>
</TR>
To create fields that let the end user enter a page number a layout number, use
H
TML like the following:
<TABLE cellSpacing=1 cellPadding=1 border=1 style=”WIDTH: 188px;
HEIGHT: 61px”>
<TR>
<TD>
<INPUT id=PageTxt value = “Page”
readOnly style=”WIDTH: 50px; HEIGHT: 22px” size=3>
</TD>
<TD>
<input id=Page size=”16” maxlength=”256”
style=”WIDTH: 147px; HEIGHT: 22px”>
</TD>
</TR>
<TR>
<TD>
<INPUT id=LayoutTxt value = “Layout”
readOnly style =”WIDTH: 50px; HEIGHT: 22px” size=4>
</TD>
<TD>
<input id=Layout size=”16” maxlength=”256”
style=”WIDTH: 147px; HEIGHT: 22px”>
</TD>
</TR>
</TABLE>
To create a button that lets the end user submit the request, use HTML like the
following:
<input type=”submit” value=”Render document”
name=”Submit” LANGUAGE=”javascript”
onclick=”return Submit_onclick()”/>
The above HTML calls a function named Submit_onclick(). You can add such a
function to the <HEAD> section of the HTML. For example:
<head>
<TITLE>Quark Stream</TITLE>
<script ID=”clientEventHandlersJS” LANGUAGE=”javascript”>
function Submit_onclick() {
var prefix;
var renderer;
var file;
var url;
var box1Name;
var dataImportStamp = “@dataimport”;
prefix = “http://” + document.getElementById(“Server”).value +
“:”;
port = document.getElementById(“Port”).value + “/”;
renderer = document.getElementById(“select1”).value + “/”;
file = document.getElementById(“Doc”).value;
box1Name = document.getElementById(“box1”).value;
if (box1Name != “”) {
document.getElementById(“box1File”).name = box1Name +
dataImportStamp;