# Problem with autocompletion on firefox

**URL:** <https://www.ruby-forum.com/t/problem-with-autocompletion-on-firefox/49888>\
**Category:** Rails\
**Created:** [December 9, 2005, 6:48pm UTC](https://www.ruby-forum.com/t/problem-with-autocompletion-on-firefox/49888 "2005-12-09T18:48:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![marciorf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a587f6/32.png) [@marciorf](https://www.ruby-forum.com/u/marciorf)\
**Post date:** [December 9, 2005, 6:48pm UTC](https://www.ruby-forum.com/t/problem-with-autocompletion-on-firefox/49888/1 "2005-12-09T18:48:02Z")

</div>

Im facing some problems with autocomplete on firefox.

Im using autocomplete\_for helper. It shows the data correctly, but if I  
select one to input, it fills the text with spaces.  
That doesn’t happens on IE6. I have newer versions of rails and  
scriptaculous.

Using firefox developer plugin I see the following error:

Error: uncaught exception: [Exception… “Component returned failure  
code:  
0x80004005 (NS\_ERROR\_FAILURE) [nsIObserverService.removeObserver]”  
nsresult: “0x80004005 (NS\_ERROR\_FAILURE)” location: “JS frame ::  
chrome://browser/content/browser.js :: Shutdown :: line 809” data: no]

Can anyone help me on that?

Thanks

---

<div class="post-metadata">

**Author:** ![marciorf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a587f6/32.png) [@marciorf](https://www.ruby-forum.com/u/marciorf)\
**Post date:** [December 9, 2005, 7:26pm UTC](https://www.ruby-forum.com/t/problem-with-autocompletion-on-firefox/49888/2 "2005-12-09T19:26:56Z")

</div>

There have been a couple different generator/engine implementations for  
user  
authentication/management floating around. I’ve implemented the salted  
login  
generator and gotten in basically working.

But now I’m upgrading to the latest rc in anticipation of going with 1.0  
when it  
goes final. As part of this I’m doing some refactoring as well.

This will be the last opportunity I’ll have to easily change the user  
authentication/management portions of my app.

What’s the latest group thinking on the best way to do this? Should I  
take this  
opportunity to change to the ‘engine’ implemenation of the salted login  
generator? Or is there some other package I should consider?

-k

---

<div class="post-metadata">

**Author:** ![marciorf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a587f6/32.png) [@marciorf](https://www.ruby-forum.com/u/marciorf)\
**Post date:** [December 9, 2005, 7:56pm UTC](https://www.ruby-forum.com/t/problem-with-autocompletion-on-firefox/49888/3 "2005-12-09T19:56:45Z")

</div>

I think the lastest thinking is that engines are a good solution for  
login/users because the are more maintainable than generated code.

Login Engine  
User Engine  
ActiveRBAC which is going to be converted into an engine soon

- Peter

---

<div class="post-metadata">

**Author:** ![marciorf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a587f6/32.png) [@marciorf](https://www.ruby-forum.com/u/marciorf)\
**Post date:** [December 9, 2005, 8:52pm UTC](https://www.ruby-forum.com/t/problem-with-autocompletion-on-firefox/49888/4 "2005-12-09T20:52:07Z")

</div>

On Dec 9, 2005, at 10:25 AM, Kevin B. wrote:

> This will be the last opportunity I’ll have to easily change the user  
> authentication/management portions of my app.
> 
> What’s the latest group thinking on the best way to do this? Should  
> I take this  
> opportunity to change to the ‘engine’ implemenation of the salted  
> login  
> generator? Or is there some other package I should consider?
> 
> -k

I personally find technoweenie’s acts\_as\_authenticated plugin/  
generator the easiest to use and extend. The salted hash has so much  
indirection and is so spread out over multiple places that it is hard  
to refactor into a customized version to fit your app. That is not a  
problem with the one suggested above. Its nice and clean and easy to  
customize. Just my opinion but it is what I use to get started on  
authentication in most of my apps.

# add [http://techno-weenie.net/svn/projects/plugins/](http://techno-weenie.net/svn/projects/plugins/)

./script/plugin discover  
./script/plugin install acts\_as\_authenticated  
./script/generate authenticated user account  
./script/generate authenticated\_mailer user

[http://techno-weenie.net/blog/](http://techno-weenie.net/blog/)

Cheers-

-Ezra Z.  
Yakima Herald-Republic  
WebMaster  
[http://yakimaherald.com](http://yakimaherald.com)  
509-577-7732  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![marciorf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a587f6/32.png) [@marciorf](https://www.ruby-forum.com/u/marciorf)\
**Post date:** [December 15, 2005, 12:59pm UTC](https://www.ruby-forum.com/t/problem-with-autocompletion-on-firefox/49888/5 "2005-12-15T12:59:52Z")

</div>

I have found something on Demetrius blog ([http://dema.ruby.org](http://dema.ruby.org)).  
[http://dema.ruby.com.br/articles/2005/05/06/be-careful-when-mixing-ajax-and-popup-windows-on-firefox](http://dema.ruby.com.br/articles/2005/05/06/be-careful-when-mixing-ajax-and-popup-windows-on-firefox)

He says we should use javascript setTimeOut function, but as I’m using  
text\_field\_with\_auto\_complete, I see no way of calling this function.

So, is there a way to use setTimeOut with text\_field\_with\_auto\_complete?  
Or any other to help me with this?

Thanks

---------- Forwarded message ----------  
From: MÃ¡rcio Francisco [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Date: Dec 9, 2005 2:44 PM  
Subject: Problem with autocompletion on firefox.  
To: removed\_email\_address@domain.invalid

Im facing some problems with autocomplete on firefox.

Im using autocomplete\_for helper. It shows the data correctly, but if I  
select one to input, it fills the text with spaces.  
That doesn’t happens on IE6. I have newer versions of rails and  
scriptaculous.

Using firefox developer plugin I see the following error:

Error: uncaught exception: [Exception… “Component returned failure  
code:  
0x80004005 (NS\_ERROR\_FAILURE) [nsIObserverService.removeObserver]”  
nsresult: “0x80004005 (NS\_ERROR\_FAILURE)” location: “JS frame ::  
chrome://browser/content/browser.js :: Shutdown :: line 809” data: no]

Can anyone help me on that?

Thanks

---

<div class="post-metadata">

**Author:** ![marciorf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a587f6/32.png) [@marciorf](https://www.ruby-forum.com/u/marciorf)\
**Post date:** [December 15, 2005, 6:43pm UTC](https://www.ruby-forum.com/t/problem-with-autocompletion-on-firefox/49888/6 "2005-12-15T18:43:03Z")

</div>

I have found something on Demetrius blog ([http://dema.ruby.org](http://dema.ruby.org)).  
[http://dema.ruby.com.br/articles/2005/05/06/be-careful-when-mixing-ajax-and-popup-windows-on-firefox](http://dema.ruby.com.br/articles/2005/05/06/be-careful-when-mixing-ajax-and-popup-windows-on-firefox)

He says we should use javascript setTimeOut function, but as I’m using  
text\_field\_with\_auto\_complete, I see no way of calling this function.

So, is there a way to use setTimeOut with text\_field\_with\_auto\_complete?  
Or any other to help me with this?

Thanks

---------- Forwarded message ----------  
From: MÃ¡rcio Francisco [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Date: Dec 9, 2005 2:44 PM  
Subject: Problem with autocompletion on firefox.  
To: removed\_email\_address@domain.invalid

Im facing some problems with autocomplete on firefox.

Im using autocomplete\_for helper. It shows the data correctly, but if I  
select one to input, it fills the text with spaces.  
That doesn’t happens on IE6. I have newer versions of rails and  
scriptaculous.

Using firefox developer plugin I see the following error:

Error: uncaught exception: [Exception… “Component returned failure  
code:  
0x80004005 (NS\_ERROR\_FAILURE) [nsIObserverService.removeObserver]”  
nsresult: “0x80004005 (NS\_ERROR\_FAILURE)” location: “JS frame ::  
chrome://browser/content/browser.js :: Shutdown :: line 809” data: no]

Can anyone help me on that?

Thanks
