Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

- Updated ConfigLiveSearch.html - added documentation for load_js and load_css

apfelmaennchen31360ba40cce
diff --git a/htroot/ConfigLiveSearch.html b/htroot/ConfigLiveSearch.html
index 35ab092c1..8e636a9d1 100644
--- a/htroot/ConfigLiveSearch.html
+++ b/htroot/ConfigLiveSearch.html
@@ -17,7 +17,7 @@
<h4>Code Snippet:</h4>
<pre>
-&lt;script src="http://#[ip]#:#[port]#/yacy/ui/js/jquery-1.3.1.min.js" type="text/javascript"&gt;&lt;/script&gt;
+&lt;script src="http://#[ip]#:#[port]#/yacy/ui/js/jquery-1.3.2.min.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script&gt;
$(document).ready(function() {
yconf = {
@@ -44,7 +44,8 @@
&lt;input type="hidden" name="prefermaskfilter" value="" /&gt;
&lt;input type="hidden" name="former" value="" /&gt;
&lt;input type="hidden" name="display" value="2" /&gt;
- &lt;input type="submit" name="Enter" value="Search" /&gt;
+ &lt;input type="submit" name="Enter" value="Search" /&gt;
+ &lt;input type="submit" name="nav" value="all" /&gt;
&lt;/form&gt;
&lt;/div&gt;
</pre>
@@ -63,7 +64,9 @@
<dt>modal</dt><dd>false</dd>
<dt>resizable</dt><dd>true</dd>
<dt>show</dt><dd>''</dd>
-<dt>hide</dt><dd>''</dd>
+<dt>hide</dt><dd>''</dd>
+<dt>load_js</dt><dd>true</dd>
+<dt>load_css</dt><dd>true</dd>
</dl></form>
<h5>Size and position (width | height | position)</h5>
Specifies where the dialog should be displayed. Possible values for position: 'center', 'left', 'right', 'top', 'bottom', or an array containing a coordinate pair (in pixel offset from top left of viewport) or the possible string values (e.g. ['right','top'] for top right corner).
@@ -73,14 +76,32 @@ The effect to be used. Possible values: 'blind', 'clip', 'drop', 'explode', 'fol
If modal is set to true, the dialog will have modal behavior; other items on the page will be disabled (i.e. cannot be interacted with). Modal dialogs create an overlay below the dialog but above other page elements.
<p/>
If resizable is set to true, the dialog will be resizeable.
+<h5>Load JavaScript load_js (true | false)</h5>
+<p>
+If load_js is set to false, you have to manually load the needed JavaScript on your portal page. This can help to avoid timing problems or double loading.
+<pre>
+&lt;script src="/yacy/ui/js/jquery-1.3.2.min.js" type="text/javascript"&gt;&lt;/script&gt;
+&lt;script src="/yacy/ui/js/jquery-ui-1.7.2.min.js" type="text/javascript"&gt;&lt;/script&gt;
+&lt;script src="/yacy/ui/js/jquery.dimensions.min.js"&gt;&lt;/script&gt;
+&lt;script src="/yacy/ui/js/jquery.query.js"&gt;&lt;/script&gt;
+&lt;script src="/yacy/ui/js/jquery.form.js"&gt;&lt;/script&gt;
+&lt;script src="/yacy/ui/js/jquery.field.min.js"&gt;&lt;/script&gt;
+&lt;script src="/yacy/ui/js/jquery-faviconize-1.0.js"&gt;&lt;/script&gt;
+</pre>
+</p>
+<h5>Load Stylesheets load_css (true | false)</h5>
+<p>
+If load_css is set to false, you have to manually load the needed CSS on your portal page. This can help to avoid timing problems or double loading.
+<pre>
+&lt;link media="screen" type="text/css" href="/yacy/ui/css/themes/start/ui.base.css" rel="stylesheet" /&gt;
+&lt;link media="screen" type="text/css" href="/yacy/ui/css/themes/start/ui.theme.css" rel="stylesheet" /&gt;
+&lt;link media="screen" type="text/css" href="/yacy/ui/css/yacyui-portalsearch.css" rel="stylesheet" /&gt;
+<pre>
+</p>
<h5>Themes</h5>
<p>You can <a href="http://jquery-ui.googlecode.com/files/jquery-ui-themes-1.7.zip" target="_blank">
download</a> ready made themes or <a href="http://jqueryui.com/themeroller/" target="_blank">create</a>
-your own custom theme. <br/>Themes are installed into: DATA/HTDOCS/yacy/ui/css/themes/</p>
-<h4>Bookmarklet:</h4>
-<p>
-<a href="javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt("You didn&#39;t select any text. Enter a search phrase:", ""); if (q!=null) location="http://#[ip]#:#[port]#/yacysearch.html?display=2&verify=true&query=" + escape(q).replace(/ /g, "+"); void 0" name="yacy">YaCy</a>
-</p>
+your own custom theme. <br/>Themes are installed into: DATA/HTDOCS/yacy/ui/css/themes/</p>
#%env/templates/footer.template%#
</body>