$('#JobQuery').keyup(function(){ $.post("/jobs/search/", $("#JobSearchForm").serialize(), function (data) { // default response type is 'html' $("#someDiv").html(data); }); });
On Aug 13, 10:47 am, Brett Ritter <swift...@swiftone.org> wrote: > On Thu, Aug 13, 2009 at 4:43 PM, Dave Maharaj :: > > WidePixels.com<d...@widepixels.com> wrote: > > $('#JobQuery').keyup(function(){ > > $.post("/jobs/search/", $("#JobSearchForm").serialize()); > > }); > ... > > can I get the data in the response to load into a div? > > The third parameter to $.post is a callback function that is called on > success and is passed the resulting data. > Checkhttp://docs.jquery.com/orhttp://visualjquery.com/for more details > on the callback and what it is passed. > > -- > Brett Ritter / SwiftOne > swift...@swiftone.org