bug with fcbkcomplete when loading through ajax

If you find that your jquery autocomplete plug-in specifically the fcbkcomplete variant works nicely when you load the entire document, but doesn’t work when you make requests through ajax to display the content in a dv tag, you might want to try this.

Basically if it’s inited in a page that was requested through ajax with content passed into a div tag. It doesn’t display the autocomplete suggestions. I found this but to be caused by width being set to “0px” in the message_to_feed <li> attribute.

My workaround for this was to add
feed.css(“width”, “512px”); // set to default width

on lines 407, and 416 in jquery.fcbkcomplete.js.

I have commented on this on the developers site hope he picks it up.

About Kwabena Aning

Website and Information Systems Manager living in London with an avid interest in web services, games, web development, Linux, chess, MVC Design patterns, Information Archetecture and most things geeky. visit www.kaning.co.uk for my portfolio and other bits of information.
This entry was posted in javascript, jquery. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>