Grow your CSS skills. Land your dream job.

jQuery noob

  • # June 11, 2008 at 2:41 pm

    ok here’s the deal ive been working on this for days now and i know it will take you guys only 5 mins to solve my problem.
    basically im trying to make a search using http://docs.jquery.com/Plugins/Autocomp … eplacement

    # June 11, 2008 at 4:52 pm

    so uhh, what is your problem exactly?

    # June 11, 2008 at 6:06 pm

    basically in the demo shown it is :

    Code:
    < !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">







    API Reference: (try “C” or “E”)

    and then i added the search feature (http://docs.jquery.com/Plugins/Autocomp … eplacement)

    Code:
    var data = [ {text:’Link A’, url:’/page1′}, {text:’Link B’, url: ‘/page2′} ];
    $(“…”).autocomplete(data, {
    formatItem: function(item) {
    return item.text;
    }
    }).result(function(event, item) {
    location.href = item.url;
    });

    =

    Code:
    < !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">







    API Reference: (try “C” or “E”)

    but when i type "link" or "jquery" nothing turns up

    # June 12, 2008 at 3:01 pm

    I’ve never played with that plugin before. I’ll throw it on the list of things to play with though, that looks pretty neat. (Sorry I can’t be of more help, I don’t see anything at first glance)

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".