Location: PHPKode > projects > TimeSheet4dotProject > ts4dp/timesheet/logger.php
<!-- AutoComplete begins -->
<link type="text/css" rel="stylesheet" href="./yui/logger/assets/skins/sam/logger.css">
<script type="text/javascript" src="./yui/logger/logger-min.js"></script> 
<script type="text/javascript" src="./yui/autocomplete/assets/js/states_jsfunction.js"></script>
<script type="text/javascript" src="./yui/yuiloader/yuiloader-beta.js"></script>
<script type="text/javascript" src="./yui/autocomplete/autocomplete-debug.js"></script> 
<h3>Type a state (will output log messages):</h3>
<div id="statesautocomplete">
    <input id="statesinput">
    <div id="statescontainer"></div>

</div>
<script type="text/javascript">
var loader = new YAHOO.util.YUILoader();
loader.insert({
    require: ['autocomplete','logger'],
    base: '../../build/',
    filter: 'DEBUG',
    onSuccess: function(loader) {
        YAHOO.example.LogAutoComplete = new function() {
            // Instantiate LogReader
            this.oLogReader = new YAHOO.widget.LogReader();

            // Instantiate DataSource
            this.oACDS = new YAHOO.widget.DS_JSFunction(getStates);

            // Instantiate AutoComplete
            this.oAutoComp = new YAHOO.widget.AutoComplete('statesinput','statescontainer', this.oACDS);
        };
    }
});
</script>
Return current item: TimeSheet4dotProject