Skip to content

Commit

Permalink
- Updated ConfigLiveSearch.html
Browse files Browse the repository at this point in the history
- added documentation for load_js and load_css

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6056 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
apfelmaennchen committed Jun 12, 2009
1 parent ab09d8e commit 31360ba
Showing 1 changed file with 29 additions and 8 deletions.
37 changes: 29 additions & 8 deletions htroot/ConfigLiveSearch.html
Expand Up @@ -17,7 +17,7 @@ <h2>Integration of a Search Field for Live Search</h2>

<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 = {
Expand All @@ -44,7 +44,8 @@ <h4>Code Snippet:</h4>
&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>
Expand All @@ -63,7 +64,9 @@ <h5>Defaults</h5>
<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).
Expand All @@ -73,14 +76,32 @@ <h5>Interaction (modal | resizable)</h5>
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>
Expand Down

0 comments on commit 31360ba

Please sign in to comment.