--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/fhiiqm/test/partner_select1.php Wed Aug 31 14:22:19 2011 +0200
@@ -0,0 +1,66 @@
+<?php
+
+/**
+ * @author Bettina Schwarzer, Fritz-Haber-Institut
+ * @copyright 08/2011
+ */
+
+
+
+?>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+
+<head>
+ <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
+ <link type="text/css" href="/fhiiqm/css/db.css" rel="Stylesheet" />
+ <link type="text/css" href="/fhiiqm/css/jquery/ui-lightness/jquery-ui-1.8.16.custom.css" rel="Stylesheet" />
+ <script type="text/javascript" src="/fhiiqm/js/jquery/jquery-1.6.2.min.js"></script>
+ <script type="text/javascript" src="/fhiiqm/js/jquery/jquery-ui-1.8.16.custom.min.js"></script>
+ <title>Test jquery ui autocomplete</title>
+ </head>
+
+ <body>
+ <script>
+ $('#date').datepicker();
+ </script>
+ <script>
+ $(function() {
+/*
+ function log( message ) {
+ $( "<div/>" ).text( message ).prependTo( "#log" );
+ $( "#log" ).scrollTop( 0 );
+ }
+*/
+ $( "#partner" ).autocomplete({
+// source: "partner_list_autocomplete.php",
+ source: ["FU Berlin", "TU Berlin", "HU Berlin"],
+ minLength: 2;
+/* select: function( event, ui ) {
+ log( ui.item ?
+ "Selected: " + ui.item.value + " aka " + ui.item.id :
+ "Nothing selected, input was " + this.value );
+ }
+*/
+ });
+ });
+ $(document).ready(function() {
+ $("input#partner").autocomplete({
+ source: ["FU Berlin", "TU Berlin", "HU Berlin"],
+ minLength: 2
+ });
+ });
+
+ </script>
+ <h3>Versuch autocomplete ui widget</h3>
+ <div class="ui-widget">
+ <label for="partner">Partner: </label>
+ <input id="partner" /> <br /><br />
+
+ <label>Datum waehlen:</label>
+ <input type="text" name="date" id="date" />
+ </div>
+ </body>
+ </html>
+
\ No newline at end of file