Ajax.Autocompleter & Q.Informer

1 view
Skip to first unread message

RudiK

unread,
Mar 11, 2011, 3:17:23 PM3/11/11
to Qutensil
Hello,

I am trying to use scriptaculous Ajax.Autocomplete and Q.informer on
the same page and it works in every browser besides for Chrome. The
page loads with no errors but the message only appears when I click on
one of the links.

Here is a snippet of my code:

<h1>Search</h1>
<script type="text/javascript">
function formfocus() {
document.getElementById('tag_search').focus();
}
window.onload = formfocus;
</script>

<form action="/search/list" class="searchform">
<input name="search_string" class="textbox" id="tag_search"
type="text" />
<input name="search_type" value="tag" type="hidden" />
<input name="search" class="button" value="Search" type="submit" />
<span style="display:none" id="tag_search_stat">Searching...</
span><div id="tag_search_auto_complete" class="autocomplete"></div>
</form>

<script type="text/javascript" language="javascript">
var myAutoCompleter = new Ajax.Autocompleter('tag_search',
'tag_search_auto_complete', '/autocomplete', {minChars : 3});
</script>

<script type="text/javascript">
document.observe('q:loaded', function() {
Informer = new Q.Informer({ width: '280' });
Informer.error('Up/down monitoring not set up correctly.
'immortal');
});
</script>

Any ideas on why this is happening>
Reply all
Reply to author
Forward
0 new messages