I would like to post data to a page that is loaded into the DOM and refresh it, but I'm not sure how to do it.
Lets say I'm starting on on default.asp. So when I click on a.openContact it properly loads "somepage.asp" into #contactSection ----------------------- $('a.openContact').click( function() { $('#contactSection').load('somepage.asp'); }); ----------------------- Then I want to post some data to that page/div and have it refresh the data. So when I click a.module: ----------------------- $('a.module').click( function() { $.post('somepage.asp', { module: 'AP' }, function() { document.write(module)); }); return false; }); ----------------------- I know this won't work because there's no refresh component. Should I post it to default.asp#contactSection?