That makes sense but I'm still not sure where/how to post it. The main page is 'default.asp'. 'somepage.asp' is loaded into a div (#contactSection). So can I post to default.asp#contactSection or "#contactSection somepage.asp" or do I need additional parameters?
On Feb 1, 12:45 pm, andrea varnier <[EMAIL PROTECTED]> wrote: > On Feb 1, 8:28 pm, Pete <[EMAIL PROTECTED]> wrote: > > > $('a.module').click( function() { > > $.post('somepage.asp', { > > module: 'AP' > > }, function() { > > document.write(module)); > > }); > > return false; > > > }); > > Hi :) > you need to modify the $.post request. > the callback function needs some data to work on, you pass them just > like this: > > $.post('somepage.asp', { module: "AP" }, function(data) { var module = > data; document.write(module); }); > > hope it helps