Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 46 lines (40 sloc) 1.81 KB
: Copyright 2010 Mark Logic Corporation. All Rights Reserved.
xquery version "1.0-ml";
let $doctype := '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'
let $html :=
<title>API Application Setup</title>
<script language="javascript" src="js/prototype.js" type="text/javascript">{" "}</script>
<script type="text/javascript" language="javascript">
function install() {
var name = document.getElementById('name').value;
var port = document.getElementById('port').value;
var url = '/api-installer/api-setup-run.xqy?app=' + name + ':' + port;
new Ajax.Updater('results', '/api-installer/get-spinner.xqy', {asynchronous:true});
new Ajax.Updater('results', url, {asynchronous:true});
<div style="font-weight:bold; font-size: 120%; text-align:center; padding: 20px;">API Search Install and Setup</div>
<span>Name: </span>
<input type="textbox" id="name" />
<span>Port: </span>
<input type="textbox" id="port" />
<input type="submit" value="Install" onClick="install()"/>
<div id="results" style="padding: 20px; border: 1px solid #DDD; width: 500px; font-style: italic; margin-top: 20px;">{"<Current Progress>"}</div>
xdmp:set-response-content-type("text/html; charset=utf-8"),
Jump to Line
Something went wrong with that request. Please try again.