I've updated dependencies so that it now requires 1.6.0 of prototype.js. This is to go with a deprecation and change in the Prototype API.

Altered positioning of list:
var pos = Position.cumulativeOffset(this.fld); // deprecated in Prototype 1.6, use instead this.fld.cumulativeOffset()
div.style.left = pos[0] - this.fld.offsetLeft + "px";
has become
var pos = this.fld.cumulativeOffset ();
div.style.left = pos[0] + "px";
As you noted in the comments above, Prototype 1.6 deprecates the previous method. I was having issues that the margin and padding were not being calculated properly. This fixed the issues I was having.

Fixed title-casing:
I came across a number of discrepancies with the title-case of several areas including the way in which css attributes were specified, images loaded (which is very important given that Unix web servers are case sensitive), and the naming of options within the file.

Adjusted the way in which notifier images are loaded:
Rather than loading the individual images for the Notifier, I've used the CSS classes you specified in the css file for ac_field and ac_field_busy.
I was having issues where the image was not correctly being set back to the leftcap image.

Changed the JSON code so that all attributes of each row are returned:
I needed this for my callbacks. It's also more efficient. I haven't had a chance to do the same thing for the XML side of things as that's more of a challenge and since I'm using JSON exclusively it's not high on my priority list at present.

Adjusted the 'gmail' code:
I've adjusted the way in which the gmail code is implemented. You'd specified an if to check for a value in the 'valueSep' option key, but the if statement wasn't evaluating the contents of variable, only whether it was set. Of course, if you set valueSep to null, or false, or simply empty in your options, this is overridden by the default settings and set to a ";". As a result, I've changed the default value to NULL.

Fixed the resetTimeout function:
I discovered that the resetTimeout function was broken. This manifested itself when you try and set the onBlur to reset the timeout as the original autoSuggest does. Rather than resetting the timeout, it immediately removes it and kills everything. The reason was that the callback function was missing from the argument.

Altered the order of conditional testing in the caching test when the string is getting longer:
Since && statements evaluate left to right, it makes more sense to first test whether we're even caching before testing several other things and then finding out that we're not - it's just more efficient if we have caching disabled.


Comments


Log in to comment or register here.
Intro Top Scripts Live Feed

About Scriptremix.com

Scriptremix.com is a online web script content site powered by people like you which aims to collect the best resources, tips, and ideas about CSS, HTML, SEO, JavaScript, AJAX, PHP, ASP, .net, linux, XML, CMS, BLOG, Prototypes, Browser Compatibility and much more in online web.

You can submit and share your favorite web script here in just few easy step.

Submit Script

Top Search Tag Cloud
#215 #8211 #8217 #8221 #8242 #8243 & (black) 1080p 24& 30& 3m tools acai acai berry accessories accessory adapter adjustable affiliate ajax aluminum and android apple automatic baby backpack bagless batteries battery belt best best buy best price bicycle bike black black & blog bonus bookmarking books bracelet built-in bumble bundle burner business buy camcorder camcorders camera cameras canon capacity car care carrier carrying cartridge cartridges ceiling charger cheap cheapest cherry chronograph classic cleaner cleaning coffee collection compact compaq compare compatible computer control convertible cookware coolpix cordless coupon codes coupons credit crystal css davinci deals deluxe design diagonal diamond digital digital camera discount dishwasher display dog double download dvd electric electronic electronics en-el1 equivalent ethernet exercise extended external fan figure filter finance find fitness flash fluorescent football football shirt format free freezer game games garmin gift global information network gold google gps graphics grills hair hdtv health home home theater hoover how html images includes ink insurance internet invicta ipad iphone javascript jersey joomla jquery kids kitchen konica laptop laptops laser lcd lcd hdtv lcd tv learn & leather lenses lenspen lightweight link link building services link wheel linkwheel linkwheels loan lowest machine manual marketing megavideo memory men' men& minolta mobile models mootools movie movies mp3 music natural navigator netbook network nikon notebook numbers: office olympus online opteka outdoor package painting lessons panasonic pentax performance pet php player plugin pocket portable powershot premium price prices printer processor products professional protector quality reader receiver rechargeable recorder refrigerator remote replacement review reviews ruby s safe sale samsung satellite save screen script security seo series server sewing shoes shopping silver single sleigh soccer software spa specific sports stainless standard storage stores sunglasses supply support switch system technology telephoto template textbooks the to tools toshiba toy toys trailer training travel treatment tripod tutorial tv upright vacuum video vision waffle watch watches water web website weight loss whirlpool white windows wireless women' world zshare