Need help replacing iframes with jquery ajax
Hi,
I have currently several iframes on my main page to display content.
One of the iframes contains a form (shoutbox). When the form is submited the post values are stored by php in db and the same page is shown with the updated shout list.
My problem is:
I can use jquery .load or .ajax function to fetch external content inside same div in main page. BUT.....
Question: How can i access a form inside the fetched document and submit it inside the same div and send the post to itself for php db insert and refresh with new values.
Also next to each posted message will have a delete link allowing the user to delete its message. But this link should also work inside the div and not require to open in full page.
Goal:I would like to be able to call the shoutbox form via ajax from the external php page and submit and get it back the new messages inside the same div on the main page.
IS this clear? Im sure is a simple problem but I'm must be missing something small.
PLEASE HELP!