[Web4lib] jQuery autocomplete question

Kraemer, Alfred akraemer at mcw.edu
Wed May 26 16:22:54 EDT 2010


Robert,

I think you may have a ^ somewhere in the regular expression that I assume is used in your cfm script.^ is the metacharactor in most reg expression implementations to indicate the start of the string to be matched.

Alfred

Alfred Kraemer
Project Manager II
Office of Research
Medical College of Wisconsin
8701 Watertown Plank Road
Milwaukee, WI 53226

Email: akraemer at mcw.edu
Phone: 414-456-4918


-----Original Message-----
From: web4lib-bounces at webjunction.org [mailto:web4lib-bounces at webjunction.org] On Behalf Of VanderHart, Robert
Sent: Tuesday, May 25, 2010 1:06 PM
To: 'web4lib at webjunction.org'
Subject: [Web4lib] jQuery autocomplete question

I'm quite new to jQuery and I'm using the autocomplete plugin on a test page (http://library.umassmed.edu/~rvanderh/newsite3/ejournals_jquery.cfm).  Right now the autocomplete is suggesting titles where the typed word is only at the beginning, but I'd like it to also suggest titles where the typed word is inside.  For example, when I typed "applied" I want to see suggestions for titles such as "Journal of Applied Behavior Analysis" in addition to "Applied Biochemistry".

I've looked around on Google and posted this question on the jQuery forum but received no response.  I believe the "matchContains" setting is what I have to adjust, but it seems that the behavior of the autocomplete doesn't change whether I use true, false, or "word" as the value.  Am I on the right track, or is there something else I need to adjust?

Thanks for any help.

--
Robert Vander Hart
Electronic Resources Librarian | Lamar Soutter Library
University of Massachusetts Medical School 01655
508-856-3290 | Robert.VanderHart at umassmed.edu
http://library.umassmed.edu | LinkedIn: http://www.linkedin.com/in/robertvanderhart





_______________________________________________
Web4lib mailing list
Web4lib at webjunction.org
http://lists.webjunction.org/web4lib/





More information about the Web4lib mailing list