RudiK
unread,Mar 11, 2011, 3:17:23 PM3/11/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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>