$(document).ready(function() {
- domReady();
- var jqxhr = jQuery.get("/service-proxy-auth")
- .fail(function() { alert("service proxy authentifiction failed"); });
-
$("#mkwsSwitch").html($("<a/>", { href: '#',
onclick: "switchView(\'recordview\')",
text: "Record Browser",
onclick: "switchView(\'targetview\')",
text: "Target Info",
}));
+
+ // For some reason, doing this programmatically results in
+ // document.search.query being undefined, hence the raw HTML.
+ $("#mkwsSearch").html('\
+ <form id="searchForm" name="search">\
+ <input id="query" type="text" size="50" />\
+ <input id="button" type="submit" value="Search" />\
+ </form>');
+
+ domReady();
+
+ var jqxhr = jQuery.get("/service-proxy-auth")
+ .fail(function() { alert("service proxy authentifiction failed"); });
+
});