Public feed
#889277
HTML:
--------------------------------------------------------------
<!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">
<head>
<base href="http://localhost/bank/" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Test</title>
<script type="text/javascript" src="script/lib/prototype.js"></script>
<script type="text/javascript" src="script/src/scriptaculous.js"></script>
<!--<script type="text/javascript" src="script/expenses.js.php"></script>
<link href="css/expenses.css" rel="stylesheet" type="text/css" />-->
<script type="text/javascript">
window.onload=function(){
new Ajax.Autocompleter(
"place_input",
"autocomplete_choices",
"/bank/_find-place/",
{
paramName: "q",
minChars: 1,
indicator: 'loading'
}
);
};
</script>
</head>
<body>
<input type="text" id="place_input" size="7" autocomplete="off" />
<div class="autocomplete" id="autocomplete_choices"></div>
<span id="loading" style="display: none"><img src="images/spinner.gif" alt="Working..." /></span>
</body>
</html>
--------------------------------------------------------------
Response body from AJAX request:
--------------------------------------------------------------
<ul>
<li>weed</li>
<li>wawawawa</li>
</ul>
--------------------------------------------------------------
Generated HTML after I type in few letters:
(Note the style="display: none;" on the autocomplete choices div, why it doesn't become block?)
--------------------------------------------------------------
<html xmlns="http://www.w3.org/1999/xhtml"><head><base href="http://localhost/bank/"/><meta _base_href="http://localhost/bank/" content="text/html; charset=UTF-8" http-equiv="Content-Type"/><title>Test</title></head><body>
<script _base_href="http://localhost/bank/" src="script/lib/prototype.js" type="text/javascript"/>
<script _base_href="http://localhost/bank/" src="script/src/scriptaculous.js" type="text/javascript"/><script _base_href="http://localhost/bank/" src="http://localhost/bank/script/src/builder.js" type="text/javascript"/><script _base_href="http://localhost/bank/" src="http://localhost/bank/script/src/effects.js" type="text/javascript"/><script _base_href="http://localhost/bank/" src="http://localhost/bank/script/src/dragdrop.js" type="text/javascript"/><script _base_href="http://localhost/bank/" src="http://localhost/bank/script/src/controls.js" type="text/javascript"/><script _base_href="http://localhost/bank/" src="http://localhost/bank/script/src/slider.js" type="text/javascript"/><script _base_href="http://localhost/bank/" src="http://localhost/bank/script/src/sound.js" type="text/javascript"/>
<!--<script type="text/javascript" src="script/expenses.js.php"></script>
<link href="css/expenses.css" rel="stylesheet" type="text/css" />-->
<script _base_href="http://localhost/bank/" type="text/javascript">
window.onload=function(){
new Ajax.Autocompleter(
"place_input",
"autocomplete_choices",
"/bank/_find-place/",
{
parameters: 'ajax',
paramName: "q",
minChars: 1,
indicator: 'loading'
}
);
};
</script>
<input type="text" _base_href="http://localhost/bank/" autocomplete="off" size="7" id="place_input"/>
<div id="autocomplete_choices" class="autocomplete" style="display: none;"><ul><li>weed</li><li>wawawawa</li></ul></div>
<span style="display: none;" id="loading"><img _base_href="http://localhost/bank/" alt="Working..." src="images/spinner.gif"/></span>
</body></html>
--------------------------------------------------------------