First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
@@ -0,0 +1,81 @@
|
||||
<?php
|
||||
//
|
||||
// Process all requests for pages in the secure area
|
||||
//
|
||||
$ValidAccess = 2010;
|
||||
require_once("include/globals.php");
|
||||
|
||||
|
||||
|
||||
// Start the template and output buffering
|
||||
startTemplate();
|
||||
$templatePageTitle = "AJAX Test";
|
||||
$headerArgs = "";
|
||||
$menuInclude = "menu.admin.php";
|
||||
|
||||
|
||||
header('Content-type: text/html; charset=iso-8859-1');
|
||||
|
||||
?>
|
||||
<style type="text/css">
|
||||
<!--
|
||||
div.autocomplete {
|
||||
position:absolute;
|
||||
width:500px;
|
||||
background-color:white;
|
||||
border:1px solid #888;
|
||||
margin:0;
|
||||
padding:0;
|
||||
}
|
||||
div.autocomplete ul {
|
||||
list-style-type:none;
|
||||
margin:0;
|
||||
padding:0;
|
||||
}
|
||||
div.autocomplete ul li.selected { background-color: #ffb;}
|
||||
div.autocomplete ul li {
|
||||
list-style-type:none;
|
||||
display:block;
|
||||
margin:0;
|
||||
padding:2px;
|
||||
height:15px;
|
||||
cursor:pointer;
|
||||
}
|
||||
-->
|
||||
</style>
|
||||
|
||||
<form method='post'>
|
||||
<table width='600'>
|
||||
<tr>
|
||||
<td align='right'>Name:</td>
|
||||
<td>
|
||||
<input type="text" id="last_name" name="last_name" size='40'><br>
|
||||
<div id="last_name_choices" class="autocomplete"></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='right'>People Num:</td>
|
||||
<td><input type='text' id='people_num' name='people_num'></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<SCRIPT TYPE="text/javascript" LANGUAGE="javascript">
|
||||
// <![CDATA[
|
||||
new Ajax.Autocompleter("last_name", "last_name_choices", "ajaxGetNames.php", {
|
||||
paramName: "nameText",
|
||||
minChars: 1,
|
||||
frequence: 0.4,
|
||||
parameters: 'sn=1&sch=1413',
|
||||
afterUpdateElement : getSelectionId
|
||||
});
|
||||
|
||||
function getSelectionId(text, li) {
|
||||
alert(li.id);
|
||||
}
|
||||
// ]]>
|
||||
</SCRIPT>
|
||||
|
||||
<?php
|
||||
|
||||
endTemplate();
|
||||
?>
|
||||
Reference in new issue
Block a user