My ajax works with FF but fails with IE. The code is quite simple:

Code:

document.observe("dom:loaded", load);

function load() {
        //$$(".tab-controls").invoke('observe', 'click', showControls)
        $("venue-search").observe('keyup', venue_search);
}

function venue_search()
{
        if(this.value.length>2){
                new Ajax.Updater('search-results', 'includes/
getHappeningsSearch.php',
                {
                        parameters: {query: this.value},
                });
        }
}

Basically it takes an input, and if the length is >2 it performs a
search for venues matching the input. You can see it in action here:
http://bellevue.com/happenings-entry.php It's under Event Location,
and type in something like "grill".

Much thanks!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to