8.0

Table Of Contents
</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>
This completes the UI section of the form.
Next you need a button on the form that will process the request and send it to QuarkXPress Server.
For this you must create a button on the form. When the button is clicked, it will call the function
Submit_onclick().
<input type="submit" value="Render document"
name="Submit" LANGUAGE="javascript"
onclick="return Submit_onclick()"/>
This function is written in the HEAD section of the HTML as:
<head>
<TITLE>Quark Stream</TITLE>
<script ID="clientEventHandlersJS" LANGUAGE="javascript">
function Submit_onclick() {
var prefix;
var renderer;
var file;
var url;
var box1Name;
var box2Name;
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;
}
else
{
document.getElementById("box1File").name = "";
}
box2Name = document.getElementById("box2").value;
if (box2Name != "")
{
document.getElementById("box2File").name = box2Name + dataImportStamp;
}
else
{
Page 32